CLPs.Rd
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)
an object of class biplot
.
a vector containing the columns or variables for which the CLPs should be displayed,
with default 1:ncol(Xcat)
.
the colour(s) for the CLPs, with default black
.
the character expansion(s) for the CLPs, with default 0.6
.
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:
a vector containing the columns or variables for which the CLPs are displayed.
the colour(s) of the CLPs.
the character expansion(s) of the plotting characters of the CLPs.
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()