rOpenSci | Use rnaturalearth to get a background map in sf format for plotting with ggplot
Reported on: Sep 10, 2019

Use rnaturalearth to get a background map in sf format for plotting with ggplot

English • By arvi1000 • Featuring: rnaturalearth

Sometimes you just need some points on map. You have lat/lon points, where are you going to get a nice background map that you can plot in R, using ggplot2 and geom_sf? R natural earth!

Package or resource used*

rnaturalearth

URL or code snippet for your use case*

https://gist.github.com/arvi1000/13eda3ad39ed89e9e196c720864b25af

Image

Field(s) of application

e.g. data visualization

What did you do?

Plotted some points on a basemap, applied a map projection