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
Good afternoon, and thank you for all your work with {ggplot2} and the ggplot2 book.
I was going to refer someone to Chapter 16 of the ggplot2 book and noted that section 16.2.3 seems out of date, with some broken appearing maps.
Outdated info?
Maps are intrinsically displays of spherical data. Simply plotting raw longitudes and latitudes is misleading, so we must project the data. There are two ways to do this with ggplot2:
Nowadays there are three ways to do this in {ggplot2} w/ coord_sf(), so should this read three ways? Further, coord_map() and coord_quickmap() are superseded - a blog on RStudio Education suggested not teaching superseded functions. I appreciate this may be personal opinion for the author, but it may be useful for readers to know how to recreate the visualisations below using coord_sf().
Broken-looking graphics
At the bottom of this page, there are a couple of broken looking maps:
On the left hand side, the world map has a load of bands cutting across the center of it.
The far right plot looks like a little splodge rather than an actual map.
Pulling together
May it be appropriate to focus on coord_sf() in section 16.2.3 and make more passing mention to coord_map()/coord_quickmap()? Or at least provide more direct guidance on the recommended coordinate system for map coordinates, as some may be put off by the "superseded" label on coord_map() but have no idea how to properly use coord_sf().
Good afternoon, and thank you for all your work with
{ggplot2}
and the ggplot2 book.I was going to refer someone to Chapter 16 of the ggplot2 book and noted that section 16.2.3 seems out of date, with some broken appearing maps.
Outdated info?
Nowadays there are three ways to do this in
{ggplot2}
w/coord_sf()
, so should this read three ways? Further,coord_map()
andcoord_quickmap()
are superseded - a blog on RStudio Education suggested not teaching superseded functions. I appreciate this may be personal opinion for the author, but it may be useful for readers to know how to recreate the visualisations below usingcoord_sf()
.Broken-looking graphics
At the bottom of this page, there are a couple of broken looking maps:
Pulling together
May it be appropriate to focus on
coord_sf()
in section 16.2.3 and make more passing mention tocoord_map()
/coord_quickmap()
? Or at least provide more direct guidance on the recommended coordinate system for map coordinates, as some may be put off by the "superseded" label oncoord_map()
but have no idea how to properly usecoord_sf()
.Created on 2023-04-27 with reprex v2.0.2
Thanks again,
Jack
The text was updated successfully, but these errors were encountered: