CLPs | R Documentation |
This function allows the user to format the aesthetics for the category level points (CLPs).
CLPs (bp, which = 1:ncol(bp$Xcat), col = "black", cex = 0.6)
bp |
an object of class |
which |
a vector containing the columns or variables for which the CLPs should be displayed,
with default |
col |
the colour(s) for the CLPs, with default |
cex |
the character expansion(s) for the CLPs, with default |
The object of class biplot
will be appended with a list called CLP.aes
containing the following elements A list with the following components is available:
which |
a vector containing the columns or variables for which the CLPs are displayed. |
col |
the colour(s) of the CLPs. |
cex |
the character expansion(s) of the plotting characters of the CLPs. |
biplot
, CA
, AoD
mtdf <- as.data.frame(mtcars)
mtdf$cyl <- factor(mtdf$cyl)
mtdf$vs <- factor(mtdf$vs)
mtdf$am <- factor(mtdf$am)
mtdf$gear <- factor(mtdf$gear)
mtdf$carb <- factor(mtdf$carb)
biplot(mtdf[,-11], scaled = TRUE) |> AoD(classes = mtdf[,11]) |>
CLPs(col = list(rep("olivedrab",3), rep("orange",2),
rep("coral",2), rep("brown",3))) |>
plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.