View source: R/plotcountrymap.R
plotcountrymap | R Documentation |
Plots maps of map objects or MAgPIE objects
plotcountrymap(x, hatching=FALSE, ...)
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 |
This function is an easy application of the mapCountryData function for ISO3 country-level magpie objects
Benjamin Leon Bodirsky
plotmap2
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.