# Subgroupcl

Jump to navigation
Jump to search

## Contents

### Purpose

Displays a confidence ellipse for points or groups of points in a two-dimensional plot.

### Synopsis

- subgroupcl(fig,cl)
- subgroupcl(scrs,cl)

### Description

Draws an ellipse around a group of points on a two-dimensional plot. A 2-component PCA model is calculated to get the orientation and size of the ellipse and this is plotted on the current figure.

First input is either `fig` the figure number on which ellipses should be drawn for all line objects on the currently selected axes, or `scrs` the two-column matrix of values of the points. An optional input is the confidence limit `cl` which defaults to 95 (= 95%).