Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rwmNewMapPlot

Internal function to set up an existing device for plotting maps


Description

Sets the region, aspect and ocean colour for a new map plot

Usage

rwmNewMapPlot(mapToPlot = getMap(), oceanCol = NA, mapRegion = "world",
  xlim = NA, ylim = NA, aspect = 1)

Arguments

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

Details

Called by mapCountryData() and mapGriddedData()

Value

a dataframe containing xlim and ylim

Author(s)

andy south


rworldmap

Mapping Global Data

v1.3-6
GPL (>= 2)
Authors
Andy South
Initial release
2016-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.