plot.morals | R Documentation |
Various plotting options for objects of class "morals"
.
## S3 method for class 'morals' plot(x, plot.type = "transplot", var.subset = "all", col.lines = "black", stepvec = NA, max.plot.array = c(2, 2), main, xlab, ylab, xlim, ylim, ...)
x |
Object of class |
plot.type |
String indicating which type of plot to be produced: |
var.subset |
Numeric vector for subsetting variables to be plotted. If missing, all variables are taken into account. Ignored for non separate variable plots. |
col.lines |
Line colors for transformation |
stepvec |
Vector whether step function should be plotted |
max.plot.array |
Number of panels in transformation plot. |
main |
Plot title. |
type |
Type of points/lines to be plotted. |
xlab |
Label of x-axis. |
ylab |
Label of y-axis. |
xlim |
Limits for x-axis. |
ylim |
Limits for y-axis. |
... |
Further plot arguments passed: see |
Plot description:
The transformation plot (plot.type = "transplot"
): Plots the original scale against the transformed scale for each variable separately.
x <- scale(as.matrix(seq(0, pi, length = 20)), scale = FALSE) y <- scale(as.matrix(sin(x)), scale = FALSE) fitxy <- morals(x, y, xknots = knotsGifi(x, "E"), xdegrees = 2) plot(fitxy, main = c("x", "y")) plot(fitxy, plot.type = "resplot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.