Learn R Programming

mdatools (version 0.14.1)

plotPointsShape: Add confidence ellipse or convex hull for group of points

Description

Add confidence ellipse or convex hull for group of points

Usage

plotPointsShape(p, lwd, lty, opacity, shape_function, ...)

Arguments

p

plot data returned by function `mdaplot()`

lwd

thickness of line used to show the hull

lty

type of line used to show the hull

opacity

of opacity is larger than 0 a semi-transparent polygon is shown over points

shape_function

function which calculates and return coordinates of the shape

...

extra parameters for shape_function