This allows you to set custom palettes individually for groups in the dataset
Arguments
- moo
multiOmicDataSetobject (seecreate_multiOmicDataSet_from_dataframes())- colname
group column name to set the palette for
- palette
Character vector of colors to assign. Defaults to
mosuite_palette.
See also
Other moo methods:
batch_correct_counts(),
calc_cpm(),
clean_raw_counts(),
diff_counts(),
extract_counts(),
filter_counts(),
filter_diff(),
normalize_counts(),
plot_corr_heatmap(),
plot_expr_heatmap(),
plot_histogram(),
plot_pca(),
plot_pca_2d(),
plot_pca_3d(),
plot_read_depth(),
plot_venn_diagram(),
plot_volcano_enhanced(),
plot_volcano_summary(),
run_deseq2(),
set_default_colors()
Examples
moo <- create_multiOmicDataSet_from_dataframes(
sample_metadata = as.data.frame(nidap_sample_metadata),
counts_dat = as.data.frame(nidap_raw_counts)
)
moo@analyses$colors$Group
#> A B C
#> "#5954d6" "#e1562c" "#b80058"
moo <- moo |> set_color_pal("Group", palette = RColorBrewer::brewer.pal(3, "Set2"))
moo@analyses$colors$Group
#> A B C
#> "#66C2A5" "#FC8D62" "#8DA0CB"
