Learn R Programming

Momocs (version 0.1-01)

panel.lm: Calculates and plots confidence ellipses.

Description

Given a set of $(x; y)$ coordinates, calculates confidence ellipses and plots them.

Usage

panel.lm(x, y, r = 1, col = "black", lwd = 1, lty = 1)

Arguments

x
a vector of numeric $x$ coordinates
y
a vector of numeric $y$ coordinates
r
a numeric indicating the number of standard deviations to calculates confidence ellipses
col
code{integer} or a character indicating the color of the ellipses to draw
lwd
a numeric indicating the lwd to use when drawing ellipses
lty
code{integer} indicating the lty to use when drawing ellipses

Examples

Run this code
plot(x <- rnorm(50), y <- rnorm(50))
panel.lm(x,y)

Run the code above in your browser using DataLab