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 = 15, cex = 1, label = FALSE,
label.col = NULL,label.cex = 0.75, label.side = "bottom", label.offset = 0.5,
opacity = 1, shade.darker = TRUE)
Arguments
bp |
an object of class |
which |
vector of which means to display, with default |
col |
mean colour, with default to sample colour. |
pch |
mean plotting character, with default |
cex |
mean character expansion, with default |
label |
logical, whether means should be labelled or not, with default |
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 |
label.side |
side of the plotting character where label appears, with default |
label.offset |
offset of the label from the mean point. See ?text for a detailed explanation of the
argument |
opacity |
transparency of means. |
shade.darker |
automatically makes the colour of the means a darker shade than the default (or specified) colour |
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. |
opacity |
transparency of means |
Examples
biplot(iris[,1:4]) |> PCA() |>
means(col = "purple", pch = 15, cex = 2) |> plot()