Could someone please point me to the current recommended solution for plotting world maps? (I have been using rworldmap
(obsoletes via maptools
, rgdal
, and rgeos
) and made some progress on raster
(suggests terra
), but both are telling me that they are themselves or that they rely on legacy packages, and will go away soon. Most solutions on stackoverflow are therefore going out of date.)
Simple starter needs. (Think world temperatures and temperature anomaly.)
Plot a worldmap with continents or countries, and then plot data values over them. I sometimes have data values by (countries,value), I sometimes have data values as (lat,lon,value) grid points (which would be nice to be smoothed, too). Color scheme red to green or red to blue. Ideally, also a choice of map projection and option for latitude/longitude lines. That's it.
I need something like a vignette or starter examples. Pointers would be greatly appreciated.