Plot the distribution of the weight of evidence in cases and in controls
Densities object produced by
Character vector of length 2 to be used to label the crude and the model-based curves (in that order).
A ggplot object representing the distributions of crude and model-based weights of evidence in cases and in controls.
1 2 3 4 5 6 7 8 9 10
data(cleveland) densities <- with(cleveland, Wdensities(y, posterior.p, prior.p)) plotWdists(densities) # Example which requires fitting a mixture distribution data(fitonly) densities <- with(fitonly, Wdensities(y, posterior.p, prior.p)) # truncate spike plotWdists(densities) + ggplot2::scale_y_continuous(limits=c(0, 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.