Learn R Programming

robust (version 0.3-0)

covfmEllipsesPlot: Ellipses Plot

Description

When there are 2 variables in the data this function produces a scatter plot of the data with an overlaid ellipse for each model in the covfm object. When there are more than 2 variables this function draws a matrix with ellipses in the upper triangle. The ellipse in the i,j cell of the matrix is drawn to be a contour of a standard bivariate normal with correlation equal to the i, j element of the correlation matrix. There is one ellipse in each cell for each model in the covfm object.

Usage

covfmEllipsesPlot(x, ...)

Arguments

x
an object of class "covfm" containing 2 elements.
...
additional arguments are passed to the low-level plotting functions.

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, cov.

Examples

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

Run the code above in your browser using DataLab