Description Usage Arguments Value Author(s) See Also Examples
View source: R/plotEtAlquickPredict.R
plot
, lines
, image
, contour
and persp
methods for
quickPredict
objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## S3 method for class 'quickPredict'
plot(x, y, xFct = function(x) x, style = c("band",
"simple"), ylim, meanCol = 2, meanWD = 2, bandCol = "grey50", xlab,
ylab, ...)
## S3 method for class 'quickPredict'
lines(x, what = c("mean", "upr", "lwr"),
xFct = function(x) x, ...)
## S3 method for class 'quickPredict'
image(x, main, xlab, ylab, ...)
## S3 method for class 'quickPredict'
contour(x, what = c("mean", "sd"), main, xlab, ylab, add,
...)
## S3 method for class 'quickPredict'
persp(x, what = c("mean", "sd"), main, xlab, ylab, zlab, ...)
|
x |
a |
y |
Not used but required by the plot method definition. |
xFct |
a function applied to the |
style |
a character string, either |
ylim |
see |
meanCol |
the color used to display the estimated mean of the term
(see argument |
meanWD |
the width used to display the estimated mean of the term
(see argument |
bandCol |
the color of the confidence interval ribbon when one is is drawn. |
xlab, ylab, zlab |
see |
main |
see |
what |
for |
add |
see |
... |
additional arguments to |
Nothing returned, these functions are used for their side effects: plots are generated or modified.
Christophe Pouzat christophe.pouzat@gmail.com
quickPredict
,
plot
,
lines
image
,
contour
,
persp
,
plot.ssanova
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
## Follow up of ssanova example of gss
data(nox)
nox.fit <- ssanova(log10(nox)~comp*equi,data=nox)
## get prediction for the first term, comp
comp.pred <- quickPredict(nox.fit)
## plot result with method plot for quickPredict objects
plot(comp.pred)
## get prediction for the second term, equi using the binary version
equi.pred <- nox.fit
plot(equi.pred)
## get prediction for the interaction term, comp:equi
comp.equi.pred <- nox.fit
## use image method image
image(comp.equi.pred)
## use contour method
contour(comp.equi.pred,col=2,lwd=2,labcex=1.5)
contour(comp.equi.pred,what="sd",lty=3,labcex=1.2,add=TRUE)
## use persp method
persp(comp.equi.pred,theta=-10,phi=20)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.