
Last chance! 50% off unlimited learning
Sale ends in
Low level functions for plotting point and lines based on the 'pl' paradigm.
plpoints(x=NULL, y=NULL, type="p", plab=NULL, pch=NULL,
pcol=NULL, col=NULL, lcol=NULL, lty=NULL, lwd=NULL, psize=NULL,
csize = NULL, group = NULL, plargs = NULL, ploptions = NULL,
marpar = NULL, xy = TRUE, ...)pllines(x, y, type="l", ...)
plsmooth
invisibly returns the data.frame needed for
drawing the smooth line. The other functions return NULL
coordinates for the horizontal and veritical axis,
respectively. If NULL
, they will be retrieved from
plargs$pldata
.
type of displaying points. See ?points
.
labels for displaying points. Overrides labels provided by
plargs$pdata[["plab"]]
.
color for points. col
is used if pcol
is NULL
color for lines
... and col
in plpoints
:
plotting character(s), relative size, median character expansion,
and color for plotting points,
and line type.
Overrides other settings, defined in plargs
.
grouping of observations, used to determine pch
and col
result of pl.control
, see Details
margin parameters, if already available.
By default, they will be retieved from ploptions
.
logical: should the coordinates be obtained as in
high level graphics? This is set to FALSE
to save time and
avoid complications, in case the user is sure that x
and
y
are vectors rather than formulas or variable names.
absorbs extra arguments
Werner A. Stahel
For plpoints
, the first arguments, x
and y
can be formulas, and an argument data
can be given.
These arguments then have the same meaning as in plyx
.
plargs
and ploptions
may be specified explicitly,
but they are usually generated by calling pl.control
.
pl.control
plyx(Sepal.Width ~ Sepal.Length, data=iris, pcol=Species)
da <- aggregate(iris[,1:4], list(Species=iris$Species), mean)
plpoints(Sepal.Width ~ Sepal.Length, plargs=list(pldata=da),
plab=da$Species, csize.pch=1, pcol=as.numeric(da$Species))
Run the code above in your browser using DataLab