| plot.plaqreffect | R Documentation |
Makes nonlinear effect plots for the nonlinear effects in a fit returned from the nonlinEffect function. Note: you cannot use this function to plot a "plaqr" object.
## S3 method for class 'plaqreffect' plot(x, select=NULL, rug = TRUE, jit = TRUE, titles = NULL, pages = 0, type="l", ...)
x |
a |
select |
vector of indices of nonlinear terms in |
rug |
if TRUE, a rugplot for the x-coordinate is plotted. |
jit |
if TRUE, the x-values of the rug plot are jittered. |
titles |
title(s) as vector of character strings, by default titles are chosen for each plot as “Effect of CovariateName (tau=tau)”. |
pages |
number of pages desired for the plots. |
type |
the type of plot that should be drawn. |
... |
additional arguments for the plotting algorithm. |
Adam Maidman
data(simData)
fit <- plaqr(y~.,~z1+z2,data=simData)
eff <- nonlinEffect(fit, select=c("z1","z2"), renames=c("Length", "Height"))
eff
plot(eff)
plot(eff, select=1, col="red")
plot(eff, select=c(2,1), titles=c("Effect Z1","Effect Z2"))
plot(eff, select=1, col="red", lwd=4)
par(mfrow=c(1,2))
plot(eff)