contour.plot | R Documentation |
Create a filled or unfilled contour plot.
## S3 method for class 'plot' contour( x, y, z, fill = F, levels = NULL, nlevels = if (is.null(levels)) 4 else length(levels), level.data = z, zlim, equal = F, pretty = T, lwd = 2, drawlabels = F, color.palette = YlGnBu.colors, bg = grey(0.65), key = T, zlab = "", ... )
x, y |
locations at which the values in |
z |
a matrix containing the values to be plotted (NAs are allowed). |
fill |
If |
levels |
numeric vector of levels at which to draw contour lines. The
next few arguments only apply to the case when |
nlevels |
The number of contour lines to draw. |
level.data |
numeric vector to use for computing |
zlim |
The range that the levels should cover. Defaults to the range
of |
equal |
If |
pretty |
If |
lwd |
width of the contour lines. |
drawlabels |
If |
color.palette |
a vector of colors, or a function which takes a number and returns a vector of that length. |
bg |
the background color. |
key |
If |
... |
extra arguments passed to |
main |
the title of the plot. |
This is a wrapper function for contour
and
filled.contour
whose main purpose is to provide a uniform
interface and provide a decent automatic choice of levels.
If equal=FALSE
, the levels are chosen according to the equal-count
algorithm of break.quantile
.
Tom Minka
contour
,filled.contour
,
color.plot.loess
# see the examples for color.plot.loess
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.