LMK_ellipse: Confidence Ellipses

Description Usage Arguments Examples

View source: R/package-support.R

Description

Draw confidence ellipses around data

Usage

1
2
3
4
5
6
7
LMK_ellipse(
  dat,
  ci = c(67.5, 90, 95, 99),
  linesCol = "black",
  fillCol = "grey",
  smoothness = 20
)

Arguments

dat

data to be plotted in matrix form [X,Y]

ci

Confidence interval to be plotted. Must be one of c(67.5, 90, 95,99)

linesCol

Color for the line. Currently takes hsv() format

fillCol

color for the fill. Currently only takes hsv() format, set NULL for no fill

smoothness

Smoothness for ellipses. Default should be sufficient but is customizable.

Examples

1
2
3
4
5
6
7
8
9
set.seed(1)

datx <- rnorm(100,0,1)
daty <- rnorm(100,0,10)

dat <- cbind(datx, daty)

plot(dat)
LMK_ellipse(dat, ci = 90)

ehrlichd/lmkCHK documentation built on Sept. 30, 2020, 3:06 a.m.