Learn R Programming

rworldmap

R package for mapping global data

Installation from CRAN

install.packages('rworldmap',dependencies=TRUE) 

Development version

require(devtools)    
install_github('AndySouth/rworldmap', build_vignettes=TRUE) 

Copy Link

Version

Install

install.packages('rworldmap')

Monthly Downloads

4,626

Version

1.3-8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 16th, 2023

Functions in rworldmap (1.3-8)

mapPies

function to produce pie charts on a map
mapGriddedData

Produce maps of global gridded data at half degree resolution
mapHalfDegreeGridToCountries

Maps user half degree gridded data at country level by first aggregating.
rworldmapExamples

Example code for plot creation
labelCountries

to print country labels on a world map
setMapExtents

Internal function allowing map extents to be set from area names
mapBars

function to produce bar plots on a map
rwmNewMapPlot

Internal function to set up an existing device for plotting maps
mapByRegion

Produce maps of regional level data from country level data
joinData2Map

Joins user polygon attribute data to a map
mapPolys

Map polygon data.
mapBubbles

function to produce bubble plots on a map, size and colour determined by attribute data
rworldmap-package

For mapping global data.
rwmGetColours

to choose map colours for classified data
rwmGetClassBreaks

Internal function to set the numeric values for the breaks between data categories
mapDevice

Creates a plot device set up for maps
rwmCheckAndLoadInput

internal function to check and load input data to mapping functions
mapCountryData

Map country-level data.
rwmGetISO3

Internal function for getting the ISO3 country code for a country name synonymn.
countriesLow

a low resolution world map, a vector map of 244 country boundaries, suitable for zooming in on regions or large global maps
getMap

A simple way to access maps stored in the package.
coastsCoarse

A map of world coasts at coarse resolution.
countryExData

Example dataset for country level data (2008 Environmental Performance Index)
country2Region

Produce regional data from country level data
countriesCoarseLessIslands

a coarse resolution world map, a vector map of 177 country boundaries, suitable for global maps
identifyCountries

a function that will print country name and attribute values when a user clicks on the map
countryRegions

Regional Classification Table
aggregateHalfDegreeGridToCountries

Aggregates global half degree gridded data to countries
addMapLegendBoxes

Add a legend of coloured boxes to a map
countriesCoarse

a coarse resolution world map, a vector map of 244 country boundaries,suitable for global maps
countrySynonyms

Synonyms of country names for each ISO 3 letter country code to enable conversion.
addMapLegend

Add a legend to a map
barplotCountryData

Barplot country-level data.
isoToName

Returns the country name corresponding to the passed iso code (3 letter, 2 letter or numeric).
gridExData

Example half degree grid data : population estimates for 2000 from IIASA
gridCountriesNumeric

A gloabl half degree grid specifying the country at each cell
joinCountryData2Map

Joins user country referenced data to a map
gridCountriesDegreesHalf

A gloabl half degree grid specifying the country at each cell