plot.see_n_factors: Plot method for numbers of clusters to extract or factors to...

View source: R/plot.n_factors.R

plot.see_n_factorsR 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.

size

Depending on type, a numeric value specifying size of bars, lines, or segments.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

if (require("parameters") && require("nFactors")) {
  data(mtcars)
  result <- n_factors(mtcars, type = "PCA")
  result
  plot(result, type = "line")
}

see documentation built on March 31, 2022, 5:07 p.m.

Related to plot.see_n_factors in see...