plot_factor {SUMO} | R Documentation |
Visualization of factor scores
plot_factor(sim_object = NULL, factor_num = NULL)
sim_object |
R object containing data to be plotted |
factor_num |
Factor to be plotted. |
A ggplot object representing the factor scores for the specified factor (or all factors) in sim_object
.
If factor_num = 'all'
, a combined plot of all factors is returned. If a specific factor_num
is provided, the plot for that factor is returned.
The plot can be further customized or displayed using standard ggplot2
functions.
# Examples
output_obj <- OmixCraftHD(
vector_features = c(2000,3000),
sigmas_vector=c(3,4),
n_samples=30,
n_factors=1
)
plot_factor(sim_object = output_obj, factor_num = 1)
plot_factor(sim_object = output_obj, factor_num = 'all')