Skip to content

Re: latest sf/ggplotblog posts, facetting, rnaturalearth #33

@adrfantini

Description

@adrfantini

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.

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions