View source: R/plot.parameters_pca.R
plot.see_parameters_pca | R Documentation |
The plot()
method for the parameters::principal_components()
function.
## 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,
...
)
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. |
A ggplot2-object.
library(parameters)
data(mtcars)
result <- principal_components(mtcars[, 1:7], n = "all", threshold = 0.2)
result
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.