regmap: Provide a map layer for maps of various regions

Usage Arguments Value

View source: R/regmap.R

Usage

1
2
3
regmap(.data, region = "europe", .lon = "lon", .lat = "lat",
  .xlim = NULL, .ylim = NULL, .region_colour = "#BBBBBB",
  .region_fill = "#DDDDDD", plot = TRUE)

Arguments

.data

data set to plot on the map

.lon

name of the longitude variable as character

.lat

name of the latitude variable as character

.xlim

longitudinal boundaries of the map

.ylim

latitudinal boundaries of the map

.region_colour

line colour for the region map

.region_fill

fill colour for the region map

plot

shall a plot be generated (TRUE, default) or only the map layer be returned (FALSE)

Value

an object of class "gg"


cszang/regmap documentation built on June 21, 2018, 10:10 p.m.