Skip to content
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
9 changes: 9 additions & 0 deletions episodes/06-vector-open-shapefile-in-r.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ ggplot() +
coord_sf()
```


On the boundary plot, the x and y axes are labeled in units of decimal degrees. However, the CRS
for `aoi_boundary_HARV` is UTM zone 18N, which has units of meters. `geom_sf` will use
the CRS of the data to set the CRS for the plot, so why is there a mismatch?

By default, `coord_sf()` generates a graticule with a CRS of WGS 84 (where the units
are decimal degrees), and this sets our axis labels. To draw the graticule in the native
CRS of our shapefile, we can set `datum=NULL` in the `coord_sf()` function.

::::::::::::::::::::::::::::::::::::::: challenge

## Challenge: Import Line and Point Vector Layers
Expand Down
Loading