plotMixture: Plot the histogram of the data and the fitted mixture...

Description Usage Arguments Examples

View source: R/edgefinder.R

Description

The function is called by the edgefinder function.

Usage

1
plotMixture(fit.em, gof, ttl = "", trim = 0)

Arguments

fit.em

The object (list) returned from the EM function with the parameter estimates for the L2N model.

gof

The root mean-squared error of the fitted model (to appear in the title of the plot).

ttl

The title of the plot (default="").

trim

The proportion of extreme values on both sides of the distribution to eliminate from the plot (default=0.) This can be useful if a small number of values are so extreme, that the plot shows mostly the tails and a spike in the middle. Default=0.

Examples

1
2
3
   data(WT)
   WTres <- edgefinder(WT, ttl = "Wild Type")
   plotMixture(WTres$fitted, WTres$rmse)

haimbar/edgefinder documentation built on Dec. 20, 2021, 2:45 p.m.