s.class | R Documentation |
s.class create a s.class plot for a dudi object (ade4)
s.class(dfxy, fac, xax = 1, yax = 2, lab.names = "", lab.extreme = FALSE, thresh.extreme = 2, drawEllipse = TRUE, cellipse = 1, drawSegment = TRUE)
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'. |
A s.class plot in ggplot2 format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.