plpoints {plgraphics} | R Documentation |
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, getpar = TRUE, getxy = TRUE, ...) pllines(x, y, type="l", ...)
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 |
getpar |
logical: should graphical parameters
|
getxy |
logical: should the coordinates be obtained as in
high level graphics? This is set to |
... |
absorbs extra arguments |
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
.
The argument getpar
is used for setting the graphical
parameters mar, mgp
according to ploptions
?
This is needed if the high level pl function has changed mar
,
since this change has been reversed when the function was left.
By default, these graphical parameters will be retieved from
.plargs$ploptions
.
plsmooth
invisibly returns the data.frame needed for
drawing the smooth line. The other functions return NULL
Werner A. Stahel
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=da$Species)