plot.DSFM1D: Plot Diagnostics for a DSFM1D Object

Description Usage Arguments See Also

View source: R/DSFM_1D.R

Description

Four plots (selectable by which) are currently available: a plot of the convergence rate of the algorithm, a plot of the time series of the estimated loadings for each factor, a plot of the estimated factor functions, and a plot of the fit. By default, the four plots are provided.

Usage

1
2
3
4
## S3 method for class 'DSFM1D'
plot(x, which = "all", ask = TRUE, pal = "pink",
  col = "#016C59", type = "l", theta = 40, border = NA, box = T,
  shade = 0.2, expand = 0.5, ticktype = "detailed", ...)

Arguments

x

an object of class "DSFM1D".

which

to choose between "all","loadings". "functions","convergence", "residuals", and "fit".

ask

logical; if TRUE, the user is asked before each plot, see par(ask=.).

pal

the color palette for the fit plot. To choose between "pink","blue","light","dark".

col

what color should be drawn.

type

what type of plot should be drawn: see plot.default.

theta

angles defining the viewing direction of the fit plot.

border

the color of the line drawn around the surface facets of the fit plot. The default, NULL, corresponds to par("fg"). A value of NA will disable the drawing of borders: this is sometimes useful when the surface is shaded.

box

should the bounding box for the surface be displayed. The default is FALSE.

shade

the shade at a surface facet is computed as ((1+d)/2)^shade, where d is the dot product of a unit vector normal to the facet and a unit vector in the direction of a light source. Values of shade close to one yield shading similar to a point light source model and values close to zero produce no shading. Values in the range 0.5 to 0.75 provide an approximation to daylight illumination.

expand

a expansion factor applied to the z coordinates. Often used with 0 < expand < 1 to shrink the plotting box in the z direction.

ticktype

character: "simple" draws just an arrow parallel to the axis to indicate direction of increase; "detailed" draws normal ticks as per 2D plots.

...

other parameters to be passed through to plotting functions.

See Also

DSFM1DData, DSFM, DSFM1D, summary.DSFM1D, predict.DSFM1D.


MarcGumowski/dysefamor documentation built on May 7, 2019, 2:47 p.m.