plotLR | R Documentation |
This function plots the weighted distribution of the log10 of likelihood ratios (LR), using the probabilities provided in 'numerators' for H1 and 'f_h_s_y' for H2 as weights. The densities are shown for two hypotheses, H1 and H2.
plotLR(data)
data |
A dataframe that must contain the columns 'LR', 'numerators', and 'f_h_s_y'. |
A ggplot object showing the weighted density plot.
data <- forensicolors::simRef()
conditioned <- conditionedProp(data, 1, 1, 1, 0.01, 0.01, 0.01)
unconditioned <- forensicolors::refProp(data)
likelihoods <- forensicolors::compute_LRs(conditioned, unconditioned)
plotLR(likelihoods)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.