Learn R Programming

robust (version 0.3-19)

covfmScreePlot: Screeplot

Description

Draws overlaid screeplots for the models in a covfm object.

Usage

covfmScreePlot(x, variables, main, xlab, ylab, ...)

Arguments

x
an object of class "covfm" containing 2 elements, typically the result of fit.models(..).
variables
a vector of positive integers specifying which eigenvalues are to be drawn. By default the 10 largest eigenvalues are plotted.
main
a character string specifying the plot title.
xlab
a character string specifying the x-axis label.
ylab
a character string specifying the y-axis label.
...
any additional arguments are passed to matplot.

Value

  • x is invisibly returned.

Details

This function is called by the generic function plot.covfm. To use this function on a "cov" or "covRob" object first use fit.models to coerce the object to class "covfm".

See Also

plot.covfm, fit.models, covRob, ccov.

Examples

Run this code
data(woodmod.dat)
  woodmod.fm <- fit.models(list(Robust = "covRob", Classical = "ccov"),
                           data = woodmod.dat)
  covfmScreePlot(woodmod.fm)

Run the code above in your browser using DataLab