legend.type {biplotEZ} | R Documentation |
Format the legend for the biplot
Description
This function enables the user to format the legend and make a required selection to display.
Usage
legend.type(bp, samples = FALSE, means = FALSE, bags = FALSE,
ellipses=FALSE,regions=FALSE, new=FALSE, ...)
Arguments
bp |
an object of class |
samples |
a logical value indicating whether a legend should be printed for samples, with default |
means |
a logical value indicating whether a legend should be printed for means, with default |
bags |
a logical value indicating whether a legend should be printed for bags, with default |
ellipses |
a logical value indicating whether a legend should be printed for concentration ellipses, with default |
regions |
a logical value indicating whether a legend should be printed for classification regions, with default |
new |
a logical value indicating whether the legend should appear in a new window, with default |
... |
additional arguments to be sent to |
Value
A list with the following components is available:
samples |
a logical value indicating whether a legend for samples are provided. |
means |
a logical value indicating whether a legend for class means are provided. |
bags |
a logical value indicating whether a legend for |
ellipses |
a logical value indicating whether a legend for |
regions |
a logical value indicating whether a legend for classification regions are provided. |
new |
a logical value indicating whether the legend appears on new plot. |
Examples
biplot (iris[,1:4], Title="Test biplot") |> PCA(group.aes = iris[,5]) |>
legend.type(samples=TRUE) |> plot()