Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 10-vector-csv-to-shapefile-in-r.Rmd #430

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions episodes/10-vector-csv-to-shapefile-in-r.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ contain the information that helps us determine the CRS:
- `utmZone`: 18

In
[When Vector Data Don't Line Up - Handling Spatial Projection \& CRS in R](09-vector-when-data-dont-line-up-crs/)
[When Vector Data Don't Line Up - Handling Spatial Projection \& CRS in R](09-vector-when-data-dont-line-up-crs.html)
we learned about the components of a `proj4` string. We have everything we need
to assign a CRS to our data frame.

To create the `proj4` associated with UTM Zone 18 WGS84 we can look up the
projection on the
[Spatial Reference website](https://www.spatialreference.org/ref/epsg/wgs-84-utm-zone-18n/),
[Spatial Reference website](https://spatialreference.org/ref/epsg/32618/),
which contains a list of CRS formats for each projection. From here, we can
extract the
[proj4 string for UTM Zone 18N WGS84](https://www.spatialreference.org/ref/epsg/wgs-84-utm-zone-18n/proj4/).
[proj4 string for UTM Zone 18N WGS84](https://spatialreference.org/ref/epsg/32618/proj4.txt).

However, if we have other data in the UTM Zone 18N projection, it's much easier
to use the `st_crs()` function to extract the CRS in `proj4` format from that
Expand Down Expand Up @@ -212,7 +212,7 @@ ggplot() +
## Plot Extent

In
[Open and Plot Vector Layers in R](06-vector-open-shapefile-in-r/)
[Open and Plot Vector Layers in R](06-vector-open-shapefile-in-r.html)
we learned about spatial object extent. When we plot several spatial layers in
R using `ggplot`, all of the layers of the plot are considered in setting the
boundaries of the plot. To show this, let's plot our `aoi_boundary_HARV` object
Expand Down
Loading