plyx {plgraphics} | R Documentation |
A scatterplot or a bunch of them is produced according to the concept of the plplot package
plyx(x = NULL, y = NULL, group = NULL, data = NULL, type = "p", panel = plpanel, xlab = NULL, ylab = NULL, markextremes = 0, rescale = TRUE, mar = NULL, plargs = NULL, ploptions = NULL, ...)
x |
either a formula or the data to be used for the horizontal axis. If a formula of the type 'y~x', the variable 'y' in 'data' will be plotted against the variable(s) 'x'. If a data.frame with more than one column is given, each column will be used in turn to produce a plot. |
y |
data to be used as the y axis. |
group |
grouping factor: for each group, a plot will be shown for the respective subset of the data |
data |
data.frame containing the variables if 'x' is a formula |
xlab, ylab |
axis labels |
type |
type of plot, see |
panel |
panel function to do the actual drawing |
markextremes |
proportion of extreme residuals to be labeled.
If all points should be labeled, let |
rescale |
logical. Only applies if there are multiple y
variables. If |
mar |
plot margins, see |
plargs |
result of calling |
ploptions |
list of pl options. |
... |
more arguments, to be passed to |
None.
There are many more arguments, obtained from pl.control
,
see ?pl.control
. These can be passed to plmatrix
by an argument plargs
that is hidden in the ... argument list.
Werner A. Stahel, ETH Zurich
plyx(Petal.Width ~ Sepal.Length, data=iris) plyx(Petal.Width ~ Sepal.Length+Sepal.Width, data=iris, smooth=TRUE, smooth.group=Species) plyx(Petal.Length + Petal.Width ~ Sepal.Length+Sepal.Width, group = Species, data=iris, smooth=TRUE)