Learn R Programming

ellipse (version 0.2-3)

ellipse: Make an ellipse

Description

This function returns an ellipse or other outline of a confidence region for two parameters. This is a generic function. Functions with names beginning in ellipse. will be methods for this function: lm, nls, profile, profile.nls are currently implemented.

Usage

ellipse(x, ...)

Arguments

x
An object.
...
Each of the specialized types uses different optional parameters.

Value

  • A matrix is returned with two columns outlining an ellipse or a confidence region.

See Also

ellipse.lm, plotcorr

Examples

Run this code
# Plot an ellipse corresponding to a 95\% probability region for a
# bivariate normal distribution with mean 0, unit variances and 
# correlation 0.8.
plot(ellipse(0.8), type = 'l')

Run the code above in your browser using DataLab