plot.see_n_factors {see} | R Documentation |
Plot method for numbers of clusters to extract or factors to retain
Description
The plot()
method for the parameters::n_factors()
and parameters::n_clusters()
Usage
## S3 method for class 'see_n_factors'
plot(x, data = NULL, type = c("bar", "line", "area"), size = 1, ...)
Arguments
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. |
Value
A ggplot2-object.
Examples
data(mtcars)
result <- parameters::n_factors(mtcars, type = "PCA")
result
plot(result) # type = "bar" by default
plot(result, type = "line")
plot(result, type = "area")
[Package see version 0.8.5 Index]