plot.swarmPlot {gmGeostats} | R Documentation |
Plotting method for swarmPlot objects
Description
Produces a plot for objects obtained by means of swarmPlot()
. These are lists of two-element
list, respectively giving the (x,y) coordinates of a series of points defining a curve. They
are typically obtained out of a DataFrameStack()
, and each curve represents a a certain relevant
summary of one of the elements of the stack. All parameters of graphics::plot.default()
are available, plus the following
Usage
## S3 method for class 'swarmPlot'
plot(
x,
type = "l",
col = "grey",
xlim = NULL,
ylim = NULL,
xlab = "x",
ylab = "y",
main = NULL,
asp = NA,
sub = NULL,
log = "",
ann = par("ann"),
axes = TRUE,
frame.plot = axes,
bg = NA,
pch = 1,
cex = 1,
lty = 1,
lwd = 1,
add = FALSE,
...
)
Arguments
x |
swarmPlot object |
type |
|
col |
color to be used for all curves and points |
xlim |
limits of the X axis, see |
ylim |
limits of the Y axis, see |
xlab |
label for the X axis, see |
ylab |
label for the Y axis, see |
main |
main plot title, see |
asp |
plot aspect ratio, see |
sub |
plot subtitle, see |
log |
log scale for any axis? see |
ann |
plot annotation indications, see |
axes |
should axes be set? see |
frame.plot |
should the plot be framed? see |
bg |
fill color for the data points if certain |
pch |
symbol for the data points, see |
cex |
symbol size for the data points |
lty |
line style for the curves |
lwd |
line thickness for the curves |
add |
logical, add results to an existing plot? |
... |
further parameters to the plotting function |
Value
Nothing. The function is called to make a plot.
Examples
dm = list(point=1:100, var=LETTERS[1:2], rep=paste("r",1:5, sep=""))
ar = array(rnorm(1000), dim=c(100,2,5), dimnames = dm)
dfs = DataFrameStack(ar, stackDim="rep")
rs = swarmPlot(dfs, PLOTFUN=function(x) density(x[,1]), .plotargs=FALSE)
plot(rs, col="yellow", lwd=3)