PlotEquiMap: allow map longitude range to be flexible
PlotEquiMap() uses maps::map to plot the map. The longitude range can only be either [0, 360] or [-180, 180]. With the argument wrap
in map(), it should be able to plot any range. Modify coast <- maps::map(continents, interior = country.borders, wrap = TRUE,
and check other lines using map() as well.
data <- array(1:360 + rnorm(360), dim = c(lon = 360, lat = 181))
lon <- -180:179 + 110
lat <- -90:90
PlotEquiMap(data, lon, lat, filled.continents = F, country.borders = F, toptitle = 'original')