Description Usage Arguments Note See Also
Level (Contour) Plots with Polygonal Boundary
This is a revised version of the base R function
filled.contour
. It additionally plots a polygonal boundary.
1 2 3 4 5 6 7 8 9 10  filled.contour.poly(x = seq(min(poly[, 1]), max(poly[, 1]), len = nrow(z)),
y = seq(min(poly[, 2]), max(poly[, 2]), len = ncol(z)), z, poly,
xlim = range(x, finite = TRUE), ylim = range(y, finite = TRUE),
zlim = range(z, finite = TRUE), levels = pretty(zlim, nlevels),
nlevels = 10, color.palette = risk.colors,
col = color.palette(length(levels)  1), llevels = levels,
labels = NULL, labcex = 0.6, drawlabel = TRUE, method = "flattest",
vfont = c("sans serif", "plain"), lcol = par("fg"), lty = par("lty"),
lwd = par("lwd"), plot.title, plot.axes, key.title, key.axes, asp = NA,
xaxs = "i", yaxs = "i", las = 1, axes = TRUE, ...)

x 
locations of grid lines at which the values in 
y 
See 
z 
a matrix containing the values to be plotted ( 
poly 
a matrix containing the 
xlim 

ylim 

zlim 

levels 
a set of levels which are used to partition the range of

nlevels 
if 
color.palette 
a color palette function 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. 
llevels 
numeric vector of levels at which to draw contour
lines, default is the same as 
labels 
a vector giving the labels for the contour lines. If

labcex 

drawlabel 
logical, contour lines are labelled if 
method 
character string specifying where the labels will be located. Possible values are "simple", "edge" and "flattest" (the default). See the Details section. 
vfont 
if a character vector of length 2 is specified, 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 
lcol 
color for the lines drawn. 
lty 
line type for the lines drawn. 
lwd 
line width for the lines drawn. 
plot.title 
statement which add title to the main plot. 
plot.axes 
statement which draws axes on the main plot. This overrides the default axes. 
key.title 
statement which adds title to the plot key. 
key.axes 
statement which draws axes on the plot key. This overrides the default axis. 
asp 
the 
xaxs 
the 
yaxs 
the 
las 
the style of labeling to be used. The default is to use horizontal labeling. 
axes 
Logical. Should axes be drawn? See

... 
additional graphical parameters. 
By defining z
values as NA
at points outside the
polygonal boundary, filled.contour.poly
produces a contour plot
within the polygonal boundary.
filled.contour
, contour
and
pinpoly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.