plotcountrymap: Function to plot maps

View source: R/plotcountrymap.R

plotcountrymapR Documentation

Function to plot maps

Description

Plots maps of map objects or MAgPIE objects

Usage

plotcountrymap(x, hatching=FALSE, ...)

Arguments

x

a magpie object with ISO3 country names, one year and one name dimension

hatching

if hatching is activated, the second name column will be used for hatching (stripes)

...

Further attributes which are passed on to the function mapCountryData of the package rworldmap

Details

This function is an easy application of the mapCountryData function for ISO3 country-level magpie objects

Author(s)

Benjamin Leon Bodirsky

See Also

plotmap2

Examples

## Not run: 
data(population_magpie)
test<-population_magpie
dimnames(test)[[1]]<-c("AFG","DEU","FRA","EGY","IND","IDN","RUS","CHN","USA","YEM")
plotcountrymap(test[,"y2005",1])

## End(Not run)

pik-piam/luplot documentation built on Jan. 29, 2025, 12:30 a.m.