Description Usage Arguments Details Author(s) See Also Examples
panel.xy
is used like panel.xyplot
but offers more
features. In particular, it can add an lqs
resistant regression
line besides a normal one, can plot a prediction interval around the
standard regression line, can add text indicating correlation and
number of data points, and automatically uses different colors and
line styles.
1 2 |
x |
Vector of x coordindates for the plot. |
y |
Vector of x coordindates for the plot. Pairs (x,y) containing NAs will be filtered out. |
type |
A character vector (or single comma-separated string) of options to
use for plotting.
Entries |
r.min |
Even if |
level |
The confidence level of the intervals plotted by |
unicolor |
The colors used for the lines drawn by
types |
... |
Further parameters as needed for instance by
|
The types "p", "l", "b", "o", "h", "s", "S"
are in fact
processed by panel.xyplot
.
Specifying col, lty, lwd
will not work, as there are calls that
include both ...
and some of these.
Lutz Prechelt, prechelt@inf.fu-berlin.de
a.resetplotparams
,
trellis.par.get
,
panel.xyplot
,
panel.superpose
,
panel.loess
,
lm
,
lqs
.
1 2 3 4 5 6 7 8 | # set grid.prompt(TRUE) to see each plot separately (click graphics window)
data(iris)
a.resetplotparams()
print(xyplot(Sepal.Width ~ Sepal.Length|Species, data=iris,
panel=panel.xy, type="p,grid,v,lqs,r.pred,loess"))
print(xyplot(Sepal.Width ~ Sepal.Length, data=iris, groups=Species,
panel=panel.superpose, panel.groups=panel.xy,
type=c("p","grid","v","loess"), unicolor=TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.