plot.morals: Plot Methods for Morals

View source: R/plot.morals.R

plot.moralsR Documentation

Plot Methods for Morals

Description

Various plotting options for objects of class "morals".

Usage

## 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, ...)

Arguments

x

Object of class "morals"

plot.type

String indicating which type of plot to be produced: "resplot", "transplot"

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

Details

Plot description: The transformation plot (plot.type = "transplot"): Plots the original scale against the transformed scale for each variable separately.

Examples

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")

Gifi documentation built on Sept. 28, 2022, 3 a.m.

Related to plot.morals in Gifi...