Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mahalanobis_distance

Mahalanobis Distance


Description

Modified version of the code provided in the drawMahal package

Usage

mahalanobis_distance(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.

Author(s)

Nicholas Hamilton


ggtern

An Extension to 'ggplot2', for the Creation of Ternary Diagrams

v3.3.0
GPL-2 | file LICENSE
Authors
Nicholas Hamilton [aut, cre]
Initial release
2020-04-9

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.