Creates a bar plot using ggplot of the masses that are on each covariance matrix specified in the mash model.

mash_plot_covar(m, saveoutput = FALSE, suffix = "")

Arguments

m

An object of type mash

saveoutput

Logical. Should the output be saved to the path?

suffix

Character. Optional. A unique suffix used to save the files, instead of the current date & time.

Note

This plot can be useful for seeing the overall patterns of effects in the data used in mash. Non-significant effects will add mass to the "no_effects" covariance matrix, while significant effects will add mass to one of the other covariance matrices. You can use mash_plot_Ulist() to plot the covariance matrix patterns themselves.