col.bar | R Documentation |
Add a color bar or color points into an exisiting plot or map.
For a description of palette choices, see colscal
.
col.bar(
xleft,
ybottom,
xright,
ytop,
breaks,
horiz = TRUE,
srt = 45,
pch = 15,
v = 1,
h = 1,
col = col,
cex = 5,
cex.lab = 0.6,
cex.axis = 0.9,
type = "r",
verbose = FALSE,
vl = 0.5,
border = "black",
...
)
breaks |
A numeric vector of breakpoints for the colours |
horiz |
a boolean; if TRUE add horizontal color bar, else add vertical color bar |
srt |
Angle of tick labels |
pch |
see |
v |
Vertical space between color bar points |
h |
horizontal space between color bar points |
col |
see |
cex |
A numerical value giving the amount by which plotting text
and symbols should be magnified relative to the default (see |
cex.lab |
Magnification factor for x and y labels (see |
cex.axis |
Magnification factor for axis annotations (see |
type |
r : rectangular shape , p : for points |
verbose |
a boolean; if TRUE print information about progress |
vl |
a numerical specifying the relative placement of the vertical lines |
border |
a boolean; if TRUE show color bar borders |
... |
Additional graphical parameters to be passed on |
colbar.ini colscal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.