legend.type {biplotEZ}R Documentation

Legend type

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,
new = FALSE, ...)

Arguments

bp

an object of class biplot.

samples

logical, indicating whether legend should be printed for samples, with default FALSE.

means

logical, indicating whether legend should be printed for means, with default FLASE.

bags

logical, indicating whether legend should be printed for bags, with default FALSE.

ellipses

logical, indicating whether legend should be printed for concentration ellipses, with default FALSE.

new

logical, indicating whether the legend should appear in a new window, with default FALSE.

...

additional arguments to be sent to legend().

Value

A list with the following components is available:

samples

TRUE or FALSE, whether legend for samples are provided.

means

TRUE or FALSE, whether legend for class means are provided.

bags

TRUE or FALSE, whether legend for alpha-bags are provided.

ellipses

TRUE or FALSE, whether legend for kappa-ellipses are provided.

new

TRUE or FALSE, whether legend appears on new plot.

Examples

biplot (iris[,1:4], Title="Test biplot") |> PCA(group.aes = iris[,5]) |>
    legend.type(samples=TRUE) |> plot()

[Package biplotEZ version 1.2.0 Index]