For a specified response variable and interacting continuous predictors, visualize in 3d the surface average.
plotRaw3d.fnc(data = NULL, response = NULL, pred = NULL, intr = NULL,
xy = TRUE, color = "topo", zlim = NULL, xlab = NULL, ylab = NULL,
zlab = NULL, main = NULL, shift = 0, scale = 1, plot.type = "contour",
theta = 30, phi = 30, ticktype = "detailed",
contourstepsize = 1, legend.args = NULL, ...)
A data frame.
The quoted name of a continuous response variable.
The quoted name of a continuous predictor.
The quoted name of an interacting continuous predictor.
Whether to the x
and y
values from the data or to set them to seq(0, 1, len = nrow(z))
. Defaults to TRUE
.
The colour scheme to use. One of "topo"
, "heat"
, "cm"
, "terrain"
, "gray"
or "bw"
.
A two element vector specifying the plotting limits for the z-axis.
Titles for the axes. N.B. These must be character strings; expressions are not accepted. Numbers will be coerced to character strings.
The main title on top of the plot.
Constant to add to the smooth (on the scale of the linear predictor) before plotting. Defaults to 0.
Constant by which to multiply the smooth before plotting. Defaults to 1.
The type of plot to make. Can be any of "contour"
or "persp"
.
Angle defining the viewing direction. theta
gives the azimuthal direction.
Angle defining the viewing direction. phi
gives the colatitude.
Character: "simple"
draws just an arrow parallel to the axis to indicate direction of increase; "detailed"
draws normal ticks as per 2D plots.
The size of the steps from contour line to contour line. Defaults to 1. Used only if plot.type = "contour"
.
When plot.type = "image.plot"
, arguments for a complete specification of the legend label. This is in the form of list and is just passed to the mtext function. (See example in image.plot
help page). Defaults to NULL
.
Further arguments passed to functions image
, image.plot
, contour
or persp
.
Either a dynamic 3d perspective plot, a perspective plot, or a contour plot. Also invisibly returns the plotting matrix and the color vector.
NA
s will be set to 0
.
# NOT RUN {
# see example in LMERConvenienceFunctions help page.
# }
Run the code above in your browser using DataLab