mapByRegion
(Package: rworldmap) :
Produce maps of regional level data from country level data
This function will produce maps of regional statistics by aggregating country level data. For example mapping the total population of Asia, Europe,etc, from country level population data. As well as sums, other functions can be used, like mean, median, min, max, etc. There are currently 8 choices of region and 4 choices of country code.
● Data Source:
CranContrib
● Keywords: hplot
● Alias: mapByRegion
●
0 images
|
addMapLegendBoxes
(Package: rworldmap) :
Add a legend of coloured boxes to a map
Creates a colour box legend, showing the range of colours and the values the colours correspond to. This works well for categorical data with relatively few categories.
● Data Source:
CranContrib
● Keywords: aplot
● Alias: addMapLegendBoxes
●
0 images
|
mapPies
(Package: rworldmap) :
function to produce pie charts on a map
The function will produce a map with pie charts centred on country centroids (or other chosen points). The size of the circles is determined by the sum of the attribute columns and each section is coloured.
● Data Source:
CranContrib
● Keywords: aplot
● Alias: mapPies
●
0 images
|
rwmGetColours
(Package: rworldmap) :
to choose map colours for classified data
Returns a vector of colours based upon the palette specified and number of colours specified. If colourPalette specifies a number of colours and this is different from numColours, numColours takes precedence and colours are interpolated to make the number fit.
● Data Source:
CranContrib
● Keywords:
● Alias: rwmGetColours
●
0 images
|
Draw a barplot of country-level data, ranking the countries to allow easy comparison. One bar per country and to be able to read country names. This is useful for comparing with maps created by mapCountryData and accepts many of the same arguments for categorising and colouring.
● Data Source:
CranContrib
● Keywords: aplot
● Alias: barplotCountryData
●
0 images
|
rwmGetISO3
(Package: rworldmap) :
Internal function for getting the ISO3 country code for a country name
Searches countrySynonyms to get the ISO3 code. If the name is not found NA is returned. Allows joining of imperfect names to other country data in joinCountryData2Map( joinCode='NAME' )
● Data Source:
CranContrib
● Keywords: manip
● Alias: rwmGetISO3
●
0 images
|
mapBubbles
(Package: rworldmap) :
function to produce bubble plots on a map, size and colour determined by
The function will produce a map with bubbles (circles) centred on country centroids (or other chosen points). Bubbles can be sized and coloured according to specified attribute values.
● Data Source:
CranContrib
● Keywords: aplot
● Alias: mapBubbles
●
0 images
|
rwmNewMapPlot
(Package: rworldmap) :
Internal function to set up an existing device for plotting maps
Sets the region, aspect and ocean colour for a new map plot
● Data Source:
CranContrib
● Keywords: misc
● Alias: rwmNewMapPlot
●
0 images
|
Creates a colour bar legend, showing the range of colours and the values the colours correspond to. Relies heavily on image.plot() from the package fields. For simple use, simply use addLegend=TRUE in a rworldmap map function. Or users can call addMapLegend seperately to fine tune the legend. The user should insure that data, catMethod,numCats and colourPalette match the values used in the plot. The legend is designed to be useful for the variety of classification methods that exist.
● Data Source:
CranContrib
● Keywords: aplot
● Alias: addMapLegend
●
0 images
|
joinData2Map
(Package: rworldmap) :
Joins user polygon attribute data to a map
Joins user polygon attribute data to a map of polygon boundaries. The map can either be one stored in the package or provided by the user. Returns a spatialPolygonsDataFrame ready for plotting using mapPolys . Reports join successes and failures.
● Data Source:
CranContrib
● Keywords: dplot
● Alias: joinData2Map
●
0 images
|