map.ellipse: Concentration ellipses

View source: R/functions_ellipse.r

map.ellipseR Documentation

Concentration ellipses

Description

Add ellipses for each level in a factor to a plot made from a soc.ca object.

Usage

map.ellipse(
  object,
  ca.plot = map.ind(object),
  variable,
  ellipse.label = TRUE,
  ellipse.color = "default",
  label.size = 4,
  draw.levels = 1:nlevels(variable),
  ellipse.line = "solid"
)

Arguments

object

is a soc.ca class object.

ca.plot

is a plot made from a soc.ca object.

variable

is a factor of the same length and in the same order as the active varibles used for the soc.ca object.

ellipse.label

if TRUE the labels are included in the map.

ellipse.color

defines the color of the ellipses. If "default" the globally defined default colors are used. Ellipse.color can be either length of 1 or equal to the number of drawn levels.

label.size

defines the size of the labels.

draw.levels

indicates the levels in the variable for which a ellipse is drawn.

ellipse.line

defines the type of line used for the ellipses.

Value

a plot with a concentration ellipse containing 80% of the individuals for each modality.

See Also

map.ind, map.ctr

Examples

example(soc.ca)
map <- map.ind(result)
map.ellipse(result, map, active[,2])

Rsoc/soc.ca documentation built on March 7, 2024, 8:59 p.m.