plpoints {plgraphics} | R Documentation |
Plot Points and Lines in the 'pl' system
Description
Low level functions for plotting point and lines based on the 'pl' paradigm.
Usage
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", ...)
Arguments
x , y |
coordinates for the horizontal and veritical axis,
respectively. If |
type |
type of displaying points. See |
plab |
labels for displaying points. Overrides labels provided by
|
pcol , col |
color for points. |
lcol |
color for lines |
pch , psize , csize , lty , lwd |
... and |
group |
grouping of observations, used to determine |
plargs , ploptions |
result of |
marpar |
margin parameters, if already available.
By default, they will be retieved from |
xy |
logical: should the coordinates be obtained as in
high level graphics? This is set to |
... |
absorbs extra arguments |
Details
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
.
Value
plsmooth
invisibly returns the data.frame needed for
drawing the smooth line. The other functions return NULL
Author(s)
Werner A. Stahel
See Also
Examples
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))