Panel function for plotting functions
Usage
panel.plotFun(
object,
...,
type = "l",
npts = NULL,
zlab = NULL,
filled = TRUE,
levels = NULL,
nlevels = 10,
surface = FALSE,
col.regions = topo.colors,
lwd = trellis.par.get("superpose.line")$lwd,
lty = trellis.par.get("superpose.line")$lty,
alpha = NULL,
discontinuity = NULL,
discontinuities = NULL
)Arguments
- object
an object (e.g., a formula) describing a function
- ...
additional arguments, typically processed by
latticepanel functions such aslattice::panel.xyplot()orlattice::panel.levelplot(). Frequently used arguments includelwdline width
ltyline type
cola color
- type
type of plot (
"l"by default)- npts
an integer giving the number of points (in each dimension) to sample the function
- zlab
label for z axis (when in surface-plot mode)
- filled
fill with color between the contours (
TRUEby default)- levels
levels at which to draw contours
- nlevels
number of contours to draw (if
levelsnot specified)- surface
a logical indicating whether to draw a surface plot rather than a contour plot
- col.regions
a vector of colors or a function (
topo.colorsby default) for generating such- lwd
width of the line
- lty
line type
- alpha
number from 0 (transparent) to 1 (opaque) for the fill colors
- discontinuity
a positive number determining how sensitive the plot is to potential discontinuity. Larger values result in less sensitivity. The default is 1. Use
discontinuity = Infto disable discontinuity detection. Discontinuity detection uses a crude numerical heuristic and may not give the desired results in all cases.- discontinuities
a vector of input values at which a function is discontinuous or
NULLto use a heuristic to auto-detect.



