These are 2 suggestions for improving the three (really good) blog posts recently published regarding plotting spatial data with ggplot2 and sf.
I wasn't sure where to leave these, as I do not know how to reach the authors.
- I personally use facetting in ggplot quite often, way more often than I use
cowplot or patchwork to arrange plots manually. Of course facets work well with sf data, they look clean and you do not have to bang your head around to find the proper size ratios. The downside is that they are, of course, much less flexible. E.g. you cannot plot two different physical dimensions next to one another, but you can plot the same thing from different datasets.
- I find grabbing spatial data from
rnaturalearth, rnaturalearthhires and rnaturalearthdata is much more convenient than using maps or rworldmap. These packages interface to http://www.naturalearthdata.com/, optionally providing sf objects as output. One neat and useful thing is that if you grab, for example, both country boundaries and municipalities, they match exactly, avoiding small and ugly differences which come from using datasets from different sources.
These are 2 suggestions for improving the three (really good) blog posts recently published regarding plotting spatial data with
ggplot2andsf.I wasn't sure where to leave these, as I do not know how to reach the authors.
cowplotorpatchworkto arrange plots manually. Of course facets work well withsfdata, they look clean and you do not have to bang your head around to find the proper size ratios. The downside is that they are, of course, much less flexible. E.g. you cannot plot two different physical dimensions next to one another, but you can plot the same thing from different datasets.rnaturalearth,rnaturalearthhiresandrnaturalearthdatais much more convenient than usingmapsorrworldmap. These packages interface to http://www.naturalearthdata.com/, optionally providingsfobjects as output. One neat and useful thing is that if you grab, for example, both country boundaries and municipalities, they match exactly, avoiding small and ugly differences which come from using datasets from different sources.