Usage
plotRSA(x = NULL, y = 0, x2 = 0, y2 = 0, xy = 0, w = 0,
wx = 0, wy = 0, b0 = 0, xlim = NULL, ylim = NULL,
zlim = NULL, xlab = NULL, ylab = NULL, zlab = NULL,
surface = "predict", lambda = NULL,
rot = list(x = -45, y = 45, z = 35),
label.rot = list(x = 45, y = -25, z = 94),
gridsize = 21, bw = FALSE, legend = TRUE,
showSP = TRUE, axes = c("LOC", "LOIC", "PA1", "PA2"),
cex = 1.2, type = "3d", points = FALSE, model = "full",
demo = FALSE, fit = NULL, link = "identity",
distance = c(1, 1, 1), tck = c(1, 1, 1),
showBorder = TRUE, showContour = FALSE, pal = NULL,
...)
Arguments
x
Either an RSA object (returned by the RSA
function), or the coefficient for the X predictor
xy
XY interaction coefficient
w
W coefficient (for (un)constrained absolute
difference model)
wx
WX coefficient (for (un)constrained absolute
difference model)
wy
WY coefficient (for (un)constrained absolute
difference model)
surface
Method for the calculation of the surface
z values. "predict" takes the predicted values from the
model, "smooth" uses a thin plate smoother (function
Tps
from the fields
package) of the raw
data
lambda
lambda parameter for the smoother. Default
(NULL) means that it is estimated by the smoother
function. Small lambdas around 1 lead to rugged surfaces,
big lambdas to very smooth surfaces.
rot
Rotation of the 3d surface plot (when type ==
"3d")
label.rot
Rotation of the axis labls (when type ==
"3d")
gridsize
Number of grid nodes in each dimension
bw
Print surface in black and white instead of
colors?
legend
Print color legend for z values?
cex
Font size factor for axes labels
type
3d
for 3d surface plot, contour
for 2d contour plot, "interactive" for interactive
rotatable plot. Shortcuts (i.e., first letter of string)
are sufficient
points
Should the original data points be
overplotted?
model
If x is an RSA object: from which model
should the response surface be computed?
demo
Do not change that parameter (internal use
only)
fit
Do not change that parameter (internal use
only)
showSP
Should the surface parameters a1 to a4 be
shown on the plot? In case of a 3d plot a1 to a4 are
printed on the upper left side; in case of a contour plot
the principal axes are plotted.
axes
A vector of strings specifying the axes that
should be plotted. Can be any combination of c("LOC",
"LOIC", "PA1", "PA2"). LOC = line of congruence, LOIC =
line of incongruence, PA1 = first principal axis, PA2 =
second principal axis
link
Link function to transform the z axes.
Implemented are "identity" (no transformation; default),
"probit", and "logit"
showBorder
Should a thicker border around the
surface be plotted? Sometimes this border leaves the
surrounding box, which does not look good. In this case
the border can be suppressed by setting
showBorder=FALSE
.
showContour
Should the contour lines be plotted on
the 3d wireframe plot? (Parameter only relevant for
type="3d")
distance
A vector of three values defining the
distance of labels to the axes
tck
A vector of three values defining the position
of labels to the axes (see ?wireframe)
...
Additional parameters apssed to the plotting
function (e.g., main="Title"). A useful title might be
the R squared of the plotted model: main =
as.expression(bquote(R^2==.(round(getPar(x, "r2",
model="full"), 3))))