plot.pre_factor: Plot method for the pre_factor function

plot.pre_factorR Documentation

Plot method for the pre_factor function

Description

Plot method for the pre_factor function

Usage

## S3 method for class 'pre_factor'
plot(
  x,
  plots = c("scree", "change"),
  cutoff = 0.2,
  shiny = FALSE,
  custom = FALSE,
  ...
)

Arguments

x

Return value from pre_factor

plots

Plots to return. "change" shows the change in eigenvalues as variables are grouped into different number of factors, "scree" shows a scree plot of eigenvalues

cutoff

For large datasets plots can take time to render and become hard to interpret. By selection a cutoff point (e.g., eigenvalues of .8 or higher) factors with the least explanatory power are removed from the plot

shiny

Did the function call originate inside a shiny app

custom

Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This option can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and https://ggplot2.tidyverse.org/ for options.

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/multivariate/pre_factor.html for an example in Radiant

See Also

pre_factor to calculate results

summary.pre_factor to summarize results

Examples

result <- pre_factor(shopping, "v1:v6")
plot(result, plots = c("change", "scree"), cutoff = .05)

radiant-rstats/radiant.multivariate documentation built on Nov. 29, 2023, 9:52 p.m.