plot_factor {SUMO} | R Documentation |
Visualization of factor scores (ground truth)
Description
Scatter or histogram plots of sample-level factor scores from simulated multi-omics data, using scores from list_alphas and list_gammas.
Usage
plot_factor(
sim_object = NULL,
factor_num = NULL,
type = "scatter",
show.legend = TRUE
)
Arguments
sim_object |
R object containing simulated data output from |
factor_num |
Integer or "all". Which factor(s) to plot. |
type |
Character. Either "scatter" (default) or "histogram" for plot type. |
show.legend |
Logical. Whether to show legend in plots. Default is TRUE. |
Examples
output_obj <- simulate_twoOmicsData(
vector_features = c(4000,3000),
n_samples = 100,
n_factors = 2,
snr = 2.5,
num.factor = 'multiple',
advanced_dist = 'mixed')
plot_factor(sim_object = output_obj, factor_num = 1)
plot_factor(sim_object = output_obj, factor_num = 'all', type = 'histogram')
[Package SUMO version 1.2.0 Index]