View source: R/plot.n_factors.R
plot.see_n_factors | R Documentation |
The plot()
method for the parameters::n_factors()
and parameters::n_clusters()
## S3 method for class 'see_n_factors'
plot(x, data = NULL, type = c("bar", "line", "area"), size = 1, ...)
x |
An object. |
data |
The original data used to create this object. Can be a statistical model. |
type |
Character vector, indicating the type of plot.
Options are three different shapes to illustrate the degree of consensus
between dimensionality methods for each number of factors;
|
size |
Depending on |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
data(mtcars)
result <- parameters::n_factors(mtcars, type = "PCA")
result
plot(result) # type = "bar" by default
plot(result, type = "line")
plot(result, type = "area")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.