Learn R Programming

barrel (version 0.1.0)

ord_ellipse_groups: Compute Ellipse Coordinates for All Groups

Description

Calculates ellipse coordinates for all groups in ordination scores.

Usage

ord_ellipse_groups(
  scores,
  group_var,
  axis1,
  axis2,
  kind = "se",
  conf = 0.95,
  method = "classic"
)

Value

Data frame of ellipse coordinates with group labels.

Arguments

scores

Data frame of ordination scores.

group_var

Name of grouping column.

axis1

Name of first axis column.

axis2

Name of second axis column.

kind

Type of ellipse: "se" or "sd".

conf

Confidence level.

method

Covariance method: "classic" or "robust".

Details

Compute ellipse coordinates for all groups in ordination scores

Calculates ellipse coordinates for all groups in ordination scores, supports classic and robust covariance estimation.