mm_ellipse: Add confidence ellipses to a scatterplot.

mm_ellipseR Documentation

Add confidence ellipses to a scatterplot.

Description

Add confidence ellipses to a scatterplot.

Usage

mm_ellipse(
  dat,
  ci = c(67.5, 90, 95, 99),
  linesCol = "black",
  fillCol = "grey",
  smoothness = 20
)

Arguments

dat

A matrix of data to draw an ellipses around.

ci

Percentage of data to capture. Must be one of c(67.5, 90, 95, 99).

linesCol

Border color of the shape.

fillCol

Fill color of the shape.

smoothness

Lower values will look jagged, higher value will make smoother lines, but may take a long time to plot. Default value is 20.


ehrlichd/moRphomenses documentation built on March 10, 2024, 3:06 a.m.