Description Details Author(s) References Examples
Enables mapping of country level and gridded user datasets by facilitating joining to modern world maps and offering visualisation options. Country borders are derived from Natural Earth data v 1.4.0.
Package: | rworldmap |
Type: | Package |
Version: | 1.3-4 |
Date: | 2014-11-11 |
License: | GPL (>= 2) |
Country Level Data can be joined to a map using joinCountryData2Map
,
then mapped using mapCountryData
. These functions can cope with a range of country names and country codes.
Country boundaries are derived from version 1.4.0 of Natural Earth data as described in countriesCoarse
. Higher resolution boundaries are provided in a companion package rworldxtra.
More generic functions allow the user to provide their own polygon map
using joinData2Map
and mapPolys
.
Bubble, bar and pie charts can be added to maps using mapBubbles
, mapBars
and mapPies
.
Try the new method barplotCountryData
for producing a ranked bar plot of country data with country names that can
provide a useful companion to maps.
Options are provided for categorising data, colouring maps and symbols, and adding legends.
Gridded data can be mapped using mapGriddedData
, but the raster package is much more comprehensive.
Type vignette('rworldmap') to access a short document showing a few examples of the main rworldmap functions to get you started.
Andy South
with contributions from Joe Scutt-Phillips, Barry Rowlingson, Roger Bivand and Pru Foster
Maintainer: <southandy@gmail.com>
Stable version :
http://cran.r-project.org/web/packages/rworldmap
Development version :
https://r-forge.r-project.org/projects/rworldmap/
Discussion group : http://groups.google.com/group/rworldmap
1 2 3 4 5 6 7 8 9 10 11 | #mapping country level data, with no file specified it uses internal example data
mapCountryData()
#specifying region
mapCountryData(mapRegion="asia")
#mapping gridded data, with no file specified it uses internal example data
mapGriddedData()
#specifying region
mapGriddedData(mapRegion="africa")
#aggregating gridded data to country level
#with no file specified it uses internal example data
mapHalfDegreeGridToCountries()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.