add.ellipse: Add ellipse to an existing plot

View source: R/add.ellipse.R

add.ellipseR Documentation

Add ellipse to an existing plot

Description

Calculates and plots ellipse corresponding to specified confidence interval in 2-dimensional plot

Usage

add.ellipse(
  centroid,
  covmat,
  confidence = 0.95,
  npoints = 100,
  col = "black",
  ...
)

Arguments

centroid

Vector with two elements defining the ellipse centroid.

covmat

Covariance matrix for the investigated data. Only diagonal covariances supported.

confidence

Confidence level determining the ellipse borders based on the covariance matrix.

npoints

Number of plotting points.

col

Color.

...

Other arguments to be passed.

Value

Used for plotting side effects.

Author(s)

Leo Lahti leo.lahti@iki.fi


antagomir/netresponse documentation built on March 30, 2023, 7:24 a.m.