Learn R Programming

ggtern (version 1.0.6.1)

mahalanobisDistance: Mahalanobis Distance

Description

Modified version of the code provided in the drawMahal package

Usage

mahalanobisDistance(x, x.mean, x.cov, whichlines = c(0.975, 0.9, 0.75),
  m = 360)

Arguments

x
data
x.mean
mean value
x.cov
coveriance value
whichlines
the confidence values
m
the number of values to return for each line

Value

  • list containing mdX and mdY values.