plot.see_parameters_pca {see} | R Documentation |
Plot method for principal component analysis
Description
The plot()
method for the parameters::principal_components()
function.
Usage
## S3 method for class 'see_parameters_pca'
plot(
x,
type = c("bar", "line"),
size_text = 3.5,
text_color = "black",
size = 1,
show_labels = TRUE,
...
)
Arguments
x |
An object. |
type |
Character vector, indicating the type of plot.
Options are three different shapes to represent component loadings;
|
size_text |
Numeric value specifying size of text labels. |
text_color |
Character specifying color of text labels. |
size |
Depending on |
show_labels |
Logical. If |
... |
Arguments passed to or from other methods. |
Value
A ggplot2-object.
Examples
library(parameters)
data(mtcars)
result <- principal_components(mtcars[, 1:7], n = "all", threshold = 0.2)
result
plot(result)
[Package see version 0.8.5 Index]