means {biplotEZ}R Documentation

Aesthetics for biplot class / group means

Description

This function allows formatting changes to class means or group means.

Usage

means (bp,  which = NULL, col = NULL, pch = 1, cex = 1, label = FALSE,
label.col = NULL,label.cex = 0.75, label.side = "bottom", label.offset = 0.5)

Arguments

bp

an object of class biplot.

which

vector of which means to display, with default bp$g.

col

mean colour, with default to sample colour.

pch

mean plotting character, with default o.

cex

mean character expansion, with default 1.

label

logical, whether means should be labelled or not, with default TRUE.

label.col

vector of length g with the colour of the labels, defaulting to the colour of the means.

label.cex

label text expansion, with default 0.75.

label.side

side of the plotting character where label appears, with default bottom. Note that unlike the argument pos in text(), options are "bottom", "left", "top", "right" and not 1, 2, 3, 4.

label.offset

offset of the label from the mean point. See ?text for a detailed explanation of the argument offset.

Details

The number of classes or groups (defined by group.aes) is indicated as g. If an argument is not of length g, recycling is used.

Value

A list with the following components is available:

which

which means to display.

col

colour of the means.

pch

plotting character of the means.

cex

expansion of the plotting character of the means.

label

logical, whether means should be labelled.

label.col

colour of the label.

label.cex

expansion of the label.

label.side

side at which to plot the label of means.

label.offset

offset of the label from the mean point.

Examples

biplot(iris[,1:4]) |> PCA() |>
          means(col = "purple", pch = 15, cex = 2) |> plot()

[Package biplotEZ version 1.2.0 Index]