View source: R/setMapExtents.R
setMapExtents | R Documentation |
Allows map extents to be set from country or area names (e.g. India, Africa )
setMapExtents(mapRegion = "world")
mapRegion |
a country name from getMap()[['NAME']] or one of 'eurasia','africa','latin america','uk','oceania','asia' |
Can be called by mapCountryData
and
mapGriddedData
a dataframe containing we,ea,so,no values in degrees between -180 & +180
andy south
mapCountryData( mapRegion='Africa' )
mapCountryData( mapRegion='India' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.