Description Usage Arguments See Also
Basically a combination of functions contour
and filled.contour
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | fidContour(x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out =
ncol(z)), z, xlim = range(x, finite = TRUE), ylim = range(y, finite =
TRUE), zlim = range(z, finite = TRUE), levels = pretty(zlim, nlevels),
nlevels = 20, color.palette = cm.colors,
col = color.palette(length(levels) - 1), plot.title, plot.axes, key.title,
key.axes, asp = NA, xaxs = "i", yaxs = "i", las = 1, axes = TRUE,
frame.plot = axes, contour.lines = FALSE, nclevels = 10,
clevels = pretty(zlim, nclevels), labels = NULL, vfont = NULL,
labcex = 0.6, drawlabels = TRUE, method = "flattest",
ccol = par("fg"), lty = par("lty"), lwd = par("lwd"), shapeFun = NULL,
plot.key = TRUE, ...)
contourf(x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out =
ncol(z)), z, xlim = range(x, finite = TRUE), ylim = range(y, finite =
TRUE), zlim = range(z, finite = TRUE), levels = pretty(zlim, nlevels),
nlevels = 20, color.palette = cm.colors,
col = color.palette(length(levels) - 1), plot.title, plot.axes, key.title,
key.axes, asp = NA, xaxs = "i", yaxs = "i", las = 1, axes = TRUE,
frame.plot = axes, contour.lines = TRUE, nclevels = 10,
clevels = pretty(zlim, nclevels), labels = NULL, vfont = NULL,
labcex = 0.6, drawlabels = TRUE, method = "flattest",
ccol = par("fg"), lty = par("lty"), lwd = par("lwd"), shapeFun = NULL,
plot.key = TRUE, ...)
|
x, y |
locations of grid lines at which the values in ‘z’ are measured. These must be in ascending order. By default, equally spaced values from 0 to 1 are used. If ‘x’ is a ‘list’, its components ‘x$x’ and ‘x$y’ are used for ‘x’ and ‘y’, respectively. If the list has component ‘z’ this is used for ‘z’. |
z |
A matrix containing the values to be plotted (‘NA’s are allowed). Note that ‘x’ can be used instead of ‘z’ for convenience. |
xlim, ylim, zlim |
x-, y- and z-limits for the plot. |
levels |
a set of levels which are used to partition the range of ‘z’. Must be *strictly* increasing (and finite). Areas with ‘z’ values between consecutive levels are painted with the same color. |
nlevels |
if ‘levels’ is not specified, the range of ‘z’, values is divided into approximately this many levels. |
color.palette |
a color palette function to be used to assign colors in the plot. |
col |
an explicit set of colors to be used in the plot. This argument overrides any palette function specification. There should be one less color than levels |
plot.title |
statements which add titles to the main plot. |
plot.axes |
statements which draw axes (and a ‘box’) on the main plot. This overrides the default axes. |
key.title |
statements which add titles for the plot key. |
key.axes |
statements which draw axes on the plot key. This overrides the default axis. |
asp |
the y/x aspect ratio, see ‘plot.window’. |
xaxs |
the x axis style. The default is to use internal labeling. |
yaxs |
the y axis style. The default is to use internal labeling. |
las |
the style of labeling to be used. The default is to use horizontal labeling. |
axes, frame.plot |
logicals indicating if axes and a box should be drawn, as in ‘plot.default’. |
contour.lines |
Plot the contour lines? |
nclevels |
number of contour levels desired *iff* ‘levels’ is not supplied. |
clevels |
numeric vector of levels at which to draw contour lines. |
labels |
a vector giving the labels for the contour lines. If ‘NULL’ then the levels are used as labels, otherwise this is coerced by ‘as.character’. |
vfont |
if ‘NULL’, the current font family and face are used for the contour labels. If a character vector of length 2 then Hershey vector fonts are used for the contour labels. The first element of the vector selects a typeface and the second element selects a fontindex (see ‘text’ for more information). The default is ‘NULL’ on graphics devices with high-quality rotation of text and ‘c("sans serif", "plain")’ otherwise. |
labcex |
‘cex’ for contour labelling. This is an absolute size, not a multiple of ‘par("cex")’. |
drawlabels |
logical. Contours are labelled if ‘TRUE’. |
method |
character string specifying where the labels will be located. Possible values are ‘"simple"’, ‘"edge"’ and ‘"flattest"’ (the default). See the ‘Details’ section. |
ccol |
color for the lines drawn. |
lty |
line type for the lines drawn. |
lwd |
line width for the lines drawn. |
shapeFun |
Function that plots something on the canvas. |
add |
logical. If ‘TRUE’, add to a current plot. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.