s.class: s.class create a s.class plot for a dudi object (ade4)

s.classR Documentation

s.class create a s.class plot for a dudi object (ade4)

Description

s.class create a s.class plot for a dudi object (ade4)

Usage

s.class(dfxy, fac, xax = 1, yax = 2, lab.names = "",
  lab.extreme = FALSE, thresh.extreme = 2, drawEllipse = TRUE,
  cellipse = 1, drawSegment = TRUE)

Arguments

dfxy

[data.frame]: A data frame containing the two columns for the axes

fac

[vector(character)]: A factor partitioning the rows of the data frame in classes.

xax

[numeric]: The column number of x in ‘dfxy’. Component from 'dudi.pca' object for x axis.

yax

[numeric]: The column number of y in ‘dfxy’. Component from 'dudi.pca' object for y axis.

lab.names

[vector(character)]: Should labels be printed.

lab.extreme

[logical]: Should outlier's labels be printed.

thresh.extreme

[numeric]: Outlier's scale.

drawEllipse

[logical]: Draw an ellipse to represent variance.

cellipse

[numeric]: Size factor for the ellipse.

drawSegment

[logical]: Draw segment from center of each groups defined by 'fac'.

Value

A s.class plot in ggplot2 format.


mcanouil/ggFunctions documentation built on July 23, 2022, 8:28 p.m.