| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:f490e412-547b-2250-211a-6dc462f559a4 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 9354:2224A5:1A277D4:245C2EF:6AFED6D2 |
| html-safe-nonce | 261d1f2d29d55263772ed2021e6197cdafebb9a4471c80e6666c415183b9b75d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzU0OjIyMjRBNToxQTI3N0Q0OjI0NUMyRUY6NkFGRUQ2RDIiLCJ2aXNpdG9yX2lkIjoiMTI4MTk5ODAyMTEwOTY2NzUzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3753879d765213628c978192692f3849e6cdd9c4a4391921becc1a3099935ec9 |
| hovercard-subject-tag | repository:226523460 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///blob/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md |
| twitter:image | https://opengraph.githubassets.com/19f0b014c67f4cbc9622264bbf4914e4655337845e20c71ee6abdfa9c1f97aea/learner-python-R/SpatialDataScience |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19f0b014c67f4cbc9622264bbf4914e4655337845e20c71ee6abdfa9c1f97aea/learner-python-R/SpatialDataScience |
| og:image:alt | Introduction to Data Science with R. Contribute to learner-python-R/SpatialDataScience development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 826d3150b33143a00f8f8995322136daa308497c6a7a45c4cc43dd9c337a7f66 |
| turbo-cache-control | no-cache |
| go-import | github.com/learner-python-R/SpatialDataScience git https://github.com/learner-python-R/SpatialDataScience.git |
| octolytics-dimension-user_id | 16961593 |
| octolytics-dimension-user_login | learner-python-R |
| octolytics-dimension-repository_id | 226523460 |
| octolytics-dimension-repository_nwo | learner-python-R/SpatialDataScience |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 56865232 |
| octolytics-dimension-repository_parent_nwo | AdamWilsonLabEDU/SpatialDataScience |
| octolytics-dimension-repository_network_root_id | 56865232 |
| octolytics-dimension-repository_network_root_nwo | AdamWilsonLabEDU/SpatialDataScience |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 383cbc5d68ceb74f03e26ff7e793d173847601db |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flearner-python-R%2FSpatialDataScience%2Fblob%2Fdev%2F04_Spatial.md |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flearner-python-R%2FSpatialDataScience%2Fblob%2Fdev%2F04_Spatial.md |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=learner-python-R%2FSpatialDataScience |
| Reload | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md |
| Reload | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md |
| Reload | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md |
| learner-python-R | https://redirect.github.com/learner-python-R |
| SpatialDataScience | https://redirect.github.com/learner-python-R/SpatialDataScience |
| Code | https://redirect.github.com/learner-python-R/SpatialDataScience |
| Pull requests | https://redirect.github.com/learner-python-R/SpatialDataScience/pulls |
| Actions | https://redirect.github.com/learner-python-R/SpatialDataScience/actions |
| Projects | https://redirect.github.com/learner-python-R/SpatialDataScience/projects |
| Security and quality | https://redirect.github.com/learner-python-R/SpatialDataScience/security |
| Insights | https://redirect.github.com/learner-python-R/SpatialDataScience/pulse |
| https://redirect.github.com/learner-python-R/SpatialDataScience |
| SpatialDataScience | https://redirect.github.com/learner-python-R/SpatialDataScience/tree/dev |
| History | https://redirect.github.com/learner-python-R/SpatialDataScience/commits/dev/04_Spatial.md |
| https://redirect.github.com/learner-python-R/SpatialDataScience/commits/dev/04_Spatial.md |
| SpatialDataScience | https://redirect.github.com/learner-python-R/SpatialDataScience/tree/dev |
| Raw | https://github.com/learner-python-R/SpatialDataScience/raw/refs/heads/dev/04_Spatial.md |
| The R Script associated with this page is available here | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/scripts/04_Spatial.R |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#setup |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#load-packages |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#point-data |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#generate-some-random-data |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-4-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#convert-to-spatialpoints |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#create-a-spatialpointsdataframe |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#promote-a-data-frame-with-coordinates |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#subset-data |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-14-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#examine-topsoil-quality-in-the-meuse-river-data-set |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-17-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#lines |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#a-line-is-a-single-chain-of-points |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-19-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#a-lines-object-is-a-list-of-chains-with-an-id |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#a-spatiallines-is-a-list-of-lines |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-21-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#a-spatiallinesdataframe-is-a-spatiallines-with-a-matching-dataframe |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#polygons |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#getting-complicated |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_assets/polygons.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#issues |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#importing-data |
| GDAL | https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/gdal.org |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#geospatial-data-abstraction-library-gdal |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-24-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#maptools-package |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#raster-data |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#coordinate-systems |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#specifying-the-coordinate-system |
| Proj.4 | https://trac.osgeo.org/proj/ |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#the-proj4-library |
| http://spatialreference.org | http://spatialreference.org |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#specifying-coordinate-systems |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#spatial-transform |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-29-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-29-2.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#rgeos |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#rgeos-package-for-polygon-operations |
| here | http://dyerlab.bio.vcu.edu/2015/03/31/install-rgeos-on-osx/ |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#example-gsimplify |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#simplication-of-lines |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-32-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#simplification-of-polygons |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-33-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#use-rgeos-functions-with-real-spatial-data |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#simplify-polygons-with-rgeos |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#plotting-vectors-with-ggplot |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-37-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-38-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#calculate-area-with-garea |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#plot-a-chloropleth-of-area |
| Wikipedia | https://en.wikipedia.org/wiki/Choropleth_map |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-40-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#union |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial_files/figure-html/unnamed-chunk-42-1.png |
| https://redirect.github.com/learner-python-R/SpatialDataScience/blob/dev/04_Spatial.md#colophon |
| UseR 2012 Spatial Data Workshop | http://www.maths.lancs.ac.uk/~rowlings/Teaching/UseR2012/index.html |
| CC-BY-3.0 | http://creativecommons.org/licenses/by/3.0/us/ |
| MIT | http://opensource.org/licenses/MIT |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |