Learn R Programming

rdwd (version 1.6.0)

addBorders: add country and Bundesland borders to a map

Description

add country and Bundesland borders to a map

Usage

addBorders(de = "grey80", eu = "black", add = TRUE, ...)

Value

invisible list with DEU and EUR

Arguments

de

Color for Bundeslaender line (DEU). NA to suppress. DEFAULT: "grey80"

eu

Color for countries line (EUR). NA to suppress. DEFAULT: "black"

add

Logical: add to existing plot? DEFAULT: TRUE

...

Further arguments passed to raster::plot()

Author

Berry Boessenkool, berry-b@gmx.de, Aug 2019

See Also

plotRadar, DEU, EUR, website raster chapter

Examples

Run this code
if(requireNamespace("raster", quietly=TRUE)){
plot(1, xlim=c(2,16), ylim=c(47,55))
addBorders()
plot(1, xlim=c(2,16), ylim=c(47,55))
addBorders(de="orange", eu=NA)
}

Run the code above in your browser using DataLab