Description Usage Arguments Value Author(s) See Also Examples
Display a colored bar into a map or a plot. There are two types that can be displayed: "r"ectangular or "p"oints. The colored bar could be continuous (v=0) or discrete (v>0) while the colored points are always discrete. The symbols of the colored points could be any "pch" symbol from the graphical parameter.
1 2 |
breaks |
A vector giving the breakpoints between color bars or points, An esd object to be mapped |
horiz |
Not tested ! |
pch |
A graphical parameter. See |
type |
Whether the color bar is rectangular (type="r") or points ("p"). |
n.breaks |
An integer giving the _desired_ number of intervals. |
h |
Horizontal space between the color bar and the upper axis. |
v |
Vertical space to be used between the colored components. |
border |
Logical value. If TRUE, the border around the bars or the points are displyed. The default is set to FALSE |
col |
A specification for the default plotting color. Rainbow colors are used as defaults. |
cex.lab |
A numerical value giving the magnification to be used for labels. |
verbose |
Display progress details. |
... |
Additional graphical parameters. See |
A colbar object
A. Mezghani
1 2 3 4 5 6 | # Map the mean precipitation values for a selection of
stations across Norway with a minimum of 120 years of recorded daily
data.
y <- station.metnod(nmin=120,param="precip")
map(y, cex=1.5, FUN="mean", colbar=list(n.breaks=30,type="r",h=0.6,v=0,
cex.lab=0.4), showaxis=TRUE, border=FALSE, cex.axis=0.6, add.text=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.