plot_mclust: Plot mclust model

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Plot mclust model

Usage

1
2
3
4
5
6
7
plot_mclust(
  model,
  binwidth = 0.1,
  title = NULL,
  xlab = "Contribution",
  ylab = "density"
)

Arguments

model

mclust model object

binwidth

width of bins on histogram

title

plot title

xlab

label of x axis

ylab

label of y axis

Value

Plot with the histogram of occurence of fragment contributions, its kernel density esitmate (dashed) and gaussians detected by a model (color solid)

Examples

1
2
3
4
5
file_name <- system.file("extdata", "BBB_frag_contributions.txt", package = "rspci")
df <- load_data(file_name)
dx <- dplyr::filter(df, FragID == "OH (aliphatic)", Model == "consensus", Property == "overall")
m <- clust(dx$Contribution, dx$MolID)
plot_mclust(m)

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