You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this lesson, there is a emphasis on understanding what the coordinate system is for the data, and looking for the UTM CRS info for the blue bounding box.
Then after the plot renders we can see that the plot is projected in lat long, so there's a mismatch somewhere. Either the ggplot doesn't understand it's in UTM or it's projecting on the fly into lat long. I'm not sure what the intention was here. If this is part of the sf functionality then maybe there can be a line added explaining that.
The text was updated successfully, but these errors were encountered:
Thanks for the report! I can see what you mean. One option I see would be to show people how to plot the UTM coordinate labels (use the datum flag in coord_sf) but I rarely see this done in practice...
Digging a bit it seems like this is a known issue (tidyverse/ggplot2#2200 (comment)) and the workaround (datum=NULL) is given in the help for sf::st_graticule . It doesn't seem like the docs for ggplot2::coord_sf really reflect this change as of ggplot2_3.2.0
Lesson 6: Open and Plot Shapefiles in R
In this lesson, there is a emphasis on understanding what the coordinate system is for the data, and looking for the UTM CRS info for the blue bounding box.
Then after the plot renders we can see that the plot is projected in lat long, so there's a mismatch somewhere. Either the ggplot doesn't understand it's in UTM or it's projecting on the fly into lat long. I'm not sure what the intention was here. If this is part of the sf functionality then maybe there can be a line added explaining that.
The text was updated successfully, but these errors were encountered: