plot.TheBayesteApproach: Plot TheBayesteApproach

Description Usage Arguments Details Examples

View source: R/PlotHist.R

Description

This function plots a histogram of the data and its estimated mixture density.

Usage

1
2
3
4
## S3 method for class 'TheBayesteApproach'
plot(x, xlim = c(6, 50), xlab = "ZD",
  main = "Density estimator", ECOFF = FALSE, pi.level = 0.3,
  quantile = 0.01, ...)

Arguments

x

An object of class TheBayesteApproach

xlim

limits of x axis

xlab

label of x axis

main

the plot title

ECOFF

logical value indicating if the ECOFF should be computed and added to the plot

pi.level

The level of summed up pi from the distributions coming from the "right" side that needs to be exceeded, ECOFF argument (Default: 0.3)

quantile

quantile of the component with the highest mean that is taken for the ECOFF. Default is 0.01

...

additional plot parameters

Details

This function plots a histogram of the data and its estimated mixture density. Additionally to the plotted density, an ECOFF value can be added in the plot by setting the ECOFF argument to true. Further, the arguments pi.level and qunatile can be defined to calculate the ECOFF in a certain way (see FindECOFF for Details). Further plot arguments may be provided.

Examples

1
2
3
4
data("Antibiotics")
bayes.density <- TheBayesteApproach(Antibiotics)
print(bayes.density)
plot(bayes.density)

sp2019-antibiotics/ECOFFBayes documentation built on Aug. 28, 2019, 6:06 p.m.