n: an integer giving the number of colour levels, supplied to pretty
z.lim: xxx
breaks: a vector or breaks for defining color intervals; defaults to NULL, so pretty and n are used on z
palette: a function for the color palette, or colors between breaks; defaults to heat.colors
rev: logical: should the palette be reversed? Defaults to TRUE
pch: an integer giving the plotting character, supplied to plot
add: should this be added to an existing plot? Defaults to FALSE
...: other arguments passed to plot
legend: should a legend be added? Defaults to codeFALSE
n.legend: an integer giving the approximate number of legend entries; defaults to 6
legend.pretty: logical: should the legend values produced by [base]pretty? Othewrwise they are exact. Defaults to TRUE
legend.plot: passed to legend 's plot argument
legend.x: passed to legend 's x argument
legend.y: passed to legend 's y argument
legend.horiz: passed to legend 's horiz argument
legend.bg: passed to legend 's bg argument
Returns
A plot
Examples
x <- runif(50)y <- runif(50)colplot(x, y, x * y)colplot(x, y, x * y, legend=TRUE, legend.x="bottomleft")colplot(x, y, x * y, legend=TRUE, legend.pretty=FALSE, n.legend=10, legend.x="bottomleft", legend.horiz=TRUE)