Usage
addMapLegend(
colourVector=""
,cutVector=""
,legendLabels="limits"
,labelFontSize=1
,legendWidth=1.2
,legendShrink=0.9
,legendMar=3
,horizontal=TRUE
,legendArgs=NULL
,tcl=-.5
,mgp=c(3,1,0)
,sigFigs=4
,digits=3
,legendIntervals='page'
,plottedData=""
,catMethod="pretty"
,colourPalette="heat"
#,missingCountryCol="white"
)Arguments
cutVector
the categories or breaks used in the map
colourVector
colours used in the map
legendLabels
Controls the style of the labels on the legend. Choose "none" for no labels, "limits" for the two end values, and "all" to show all the break values if they fit.
labelFontSize
Controls font size of the labels. A multiplier, so use 2 to double the size, 0.5 to halve it, etc.
legendWidth
Controls the width of the colour bar.
legendShrink
Controls the length of the colour bar. 1 means full width of the plot.
legendMar
Moves the legend away from the side of the plot. Measured in character widths.
horizontal
If TRUE the legend is horizontal, if FALSE, vertical.
legendArgs
For producing titles and labels. A list of arguments to be passed to mtext.
tcl
Controls the length of the tick marks.Useful when labelFontSize is changed.
mgp
Numeric vector length 3. The second element controls the distance between labels and the axis. Useful when labelFontSize is changed.
sigFigs
The number of significant figures for legend labels.
digits
An argument to the formatting of the labels
legendIntervals
"page" or "data". Controls the division of the colour bar, "page" sets the intervals equal on the page, "data" sets them to be equal in the units of the data.
plottedData
Numeric vector. The data which was plotted
catMethod
Controls the classification scheme. Usual options of "pretty", "quantiles", "fixedWidth", "logFixedWidth" or a vector of breaks.
colourPalette
Controls the colour scheme. Usual options of "palette","heat","topo",...