plpoints {plgraphics} | R Documentation |
These functions do the plotting of points and enhancing lines based on the 'pl' paradigm
plpoints(x=NULL, y=NULL, type="p", plab=NULL, pch=NULL, col=NULL, lcol=col, lty=NULL, lwd=NULL, psize=NULL, plargs = NULL, ploptions = NULL, setpar = TRUE, ...) pllines(x, y, type="l", ...) plbars(x, y, plargs = NULL, ploptions = NULL) plsmooth(x, y, band=NULL, power = NULL, plargs = NULL, ploptions = NULL) plsmoothline(smoothline, x, y, plargs=NULL, ploptions = NULL, ...) plrefline(refline, x=NULL, innerrange=NULL, y=NULL, cutrange = c(x = TRUE, y = FALSE), plargs=NULL, ploptions=NULL, ...) plmark(x, y=NULL, markextremes=NULL, plabel=NULL, plargs=NULL, ploptions=NULL)
x |
coordinates for the horizontal axis |
y |
coordinates for the vertical axis |
plab |
labels for displaying points. Overrides labels provided by
|
col |
color points |
lcol |
color for lines |
type |
type of displaying points. See |
pch, psize, lty, lwd |
... and |
smoothline |
for |
band |
logical: should a band (e.g., a confidence band) be drawn together with the smooth? |
power |
for |
refline |
for |
innerrange |
for |
cutrange |
for |
markextremes |
proportion of observations that should be labeled because they show extreme values for a variable |
plabel |
point labels to be used to mark extreme points |
plargs, ploptions |
result of |
setpar |
logical: should graphical parameters
|
... |
absorbs extra arguments |
plargs
and ploptions
may be specified explicitly,
but they are usually generated by calling pl.control
.
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
plpoints
invisibly returns the former par("mar")
if setpar
is TRUE
, otherwise NULL
.
plsmooth
invisibly returns the data.frame needed for
drawing the smooth line.
!!!
Werner A. Stahel
plyx(Sepal.Width ~ Sepal.Length, data=iris) ## again, each step separately t.dt <- .plargs$pldata .plargs$grid <- TRUE plframe(t.dt$Sepal.Length, t.dt$Sepal.Width, plargs=.plargs) plsmooth(t.dt$Sepal.Length, t.dt$Sepal.Width, plargs=.plargs) t.plab <- plmark(t.dt$Sepal.Length, t.dt$Sepal.Width, markextremes=0.03, plargs=.plargs) plpoints(t.dt$Sepal.Length, t.dt$Sepal.Width, plargs=.plargs, plab=t.plab)