legendGradLines: Legend for Graduated Size Lines Maps

Description Usage Arguments Examples

View source: R/legends.R

Description

Plot legend for graduated size lines maps.

Usage

1
2
3
legendGradLines(pos = "topleft", title.txt = "Title of the legend",
  title.cex = 0.8, values.cex = 0.6, breaks, lwd, col, values.rnd = 2,
  cex = 1, frame = FALSE)

Arguments

pos

position of the legend, one of "topleft", "top", "topright", "left", "right", "bottomleft", "bottom", "bottomright".

title.txt

title of the legend.

title.cex

size of the legend title.

values.cex

size of the values in the legend.

breaks

break points in sorted order to indicate the intervals for assigning the width of the lines

lwd

a vector giving the width of the lines.

col

color of symbols.

values.rnd

number of decimal places of the values in the legend.

cex

size of the legend. 2 means two times bigger.

frame

whether to add a frame to the legend (TRUE) or not (FALSE).

Examples

1
2
3
4
5
6
7
8
9
data("nuts2006")
plot(nuts0.spdf)
box()
legendGradLines(title.txt = "Title of the legend", 
                pos = "topright",
                title.cex = 0.8,
                values.cex = 0.6, breaks = c(1,2,3,4,10.2,15.2),
                lwd = c(0.2,2,4,5,10),
                col ="blue", values.rnd =2)

cartography documentation built on May 20, 2017, 2:02 a.m.

Search within the cartography package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.