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

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

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*

Image

Field(s) of application

e.g. data visualization

What did you do?

Plotted some points on a basemap, applied a map projection

Twitter handle

arvi1000

4 Likes

thanks for sharing @arvi1000 - nice example

1 Like