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",
add = FALSE, alpha = 1, 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", "persp", the default, or, if package rgl is available, "persp3d".
Whether to add the points to an existing plot. This capability is only implemented for plot.type = "persp3d".
Alpha values between 0.0 (fully transparent) to 1.0 (opaque).
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, persp, or persp3d.
Either a dynamic 3d perspective plot, a perspective plot, or a contour plot. Also invisibly returns the plotting matrix and the color vector.
NAs will be set to 0. You can set add = TRUE and e.g., alpha = 0.7 to add the raw data plot to an estimated two-way interactions between continuous fixed effects. To save screenshots of "persp3d" plots (after plotting), use function rgl.snapshot (produces png files) or function rgl.postscript (produces eps files).
# NOT RUN {
# see example in LMERConvenienceFunctions help page.
# }
Run the code above in your browser using DataLab