Reconstructs one of the PCA fit graphs from its stored plotly traces. The fit type is inferred from the trace metadata and trace types, then translated into a ggplot2 chart with matching title, legend titles, and axes.
Usage
# S3 method for bipl5_fit
plot(x, y = NULL, ...)Arguments
- x
A
bipl5_fitobject, typically returned byextract(bp, fit_measures, CumPred)or a similar fit graph extraction.- y
Ignored (for S3 consistency)
- ...
Additional arguments (ignored)
Details
Supported fit graphs are cumulative predictivity (CumPred),
cumulative adequacy (CumAd), variance explained (VarExp), and
the scree plot (Scree). The summary-table fit objects are not handled
by this plotting method.
Examples
bp <- biplotEZ::biplot(iris[, 1:4]) |>
biplotEZ::PCA() |>
wrap_bipl5()
fit_plot <- extract(bp, fit_measures, Scree)
plot(fit_plot)