Learn R Programming

RVAideMemoire (version 0.9-45-2)

plot1comp.ind: Plot of indiviuals and their class on a single axis (component)

Description

Represents indivual points on a single axis (usually a factorial component) and add their class, respecting to a given factor.

Usage

plot1comp.ind(dfxy, fac, axis = 1, col = 1:nlevels(fac), legend = TRUE,
  pos.legend = "topright", ...)

Arguments

dfxy
a data frame containing coordinates of individuals on the axi(e)s.
fac
a factor giving the class of each individual.
axis
axis to be represented (the first by default).
col
a vector of colors (one value per class of the factor). Use numbers to display transparent colors.
legend
logical. If TRUE a legend is added to the graph.
pos.legend
position of the legend, if necessary. See legend.
...
further graphical arguments. See par.

See Also

s.class

Examples

Run this code
require(MASS)
data(iris)
LDA <- lda(iris[,1:4],iris$Species)
LDA.form <- LDA.format(LDA)
plot1comp.ind(LDA.form$li,LDA.form$grouping)

Run the code above in your browser using DataLab