plyx {plgraphics}R Documentation

Scatterplot, enhanced

Description

A scatterplot or a bunch of them is produced according to the concept of the plplot package

Usage

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, ...)

Arguments

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 ?plot.default

panel

panel function to do the actual drawing

markextremes

proportion of extreme residuals to be labeled. If all points should be labeled, let markextremes=1.

rescale

logical. Only applies if there are multiple y variables. If TRUE, the vertical axis will be adjusted for each of these variables.

mar

plot margins, see par

plargs

result of calling pl.control. If NULL, pl.control will be called to generate it. If not null, arguments given in ... will be ignored.

ploptions

list of pl options.

...

more arguments, to be passed to pl.control

Value

None.

Note

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.

Author(s)

Werner A. Stahel, ETH Zurich

See Also

plmatrix

Examples

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)


[Package plgraphics version 1.0 Index]