save_mclust_plots: Save plots of multiple mclust models in a grid image

Description Usage Arguments Details Examples

View source: R/functions.R

Description

Save plots of multiple mclust models in a grid image

Usage

1
save_mclust_plots(filename, models, xlab = "contribution", ylab = "density")

Arguments

filename

file name to save plots

models

list of Mclust models

xlab

label for x axis

ylab

label for y axis

Details

If list contains more than 60 models, the function will return more than one png file, each next file will contain next (up to) 60 images. (File names will get suffices "_i", i = 1,2,3,...)

Examples

1
2
3
4
5
6
file_name <- system.file("extdata", "BBB_frag_contributions.txt", package = "rspci")
df <- load_data(file_name)
df <- dplyr::filter(df, Model == "consensus", Property == "overall")
df <- add_full_names(df)
models <- clust_all(df, "full_name")
save_mclust_plots("models.png", models)

DrrDom/rspci documentation built on April 27, 2021, 4:26 a.m.