View source: R/rwmNewMapPlot.r
rwmNewMapPlot | R Documentation |
Sets the region, aspect and ocean colour for a new map plot
rwmNewMapPlot(
mapToPlot = getMap(),
oceanCol = NA,
mapRegion = "world",
xlim = NA,
ylim = NA,
aspect = 1
)
mapToPlot |
the worldmap to be plotted |
oceanCol |
a colour for the ocean |
mapRegion |
a string specifying the map region, see setMapExtents() |
xlim |
map extents c(west,east), can be overidden by mapRegion |
ylim |
map extents c(south,north), can be overidden by mapRegion |
aspect |
aspect for the map, defaults to 1, if set to 'variable' uses same default as plot.Spatial in sp |
Called by mapCountryData() and mapGriddedData()
a dataframe containing xlim and ylim
andy south
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.