| plot.lr_dist | R Documentation |
Draws the discrete \log_{10}\mathrm{LR} distribution under both
hypotheses as an overlaid lollipop plot: H_1 (related, blue)
and H_2 (unrelated, red). Less overlap means stronger
discrimination.
## S3 method for class 'lr_dist'
plot(x, ...)
x |
An |
... |
Unused. |
+Inf / -Inf atoms cannot be placed on a finite axis and are
dropped from the plot with a message; their mass is still reported by
summary.lr_dist(). The x-axis is \log_{10}\mathrm{LR}
(0 = neutral, > 0 favours H_1).
A ggplot2 object.
summary.lr_dist(), as_lr_dist()
d <- as_lr_dist(data.frame(
log10_lr = c(-1, 0, 2),
p_h1 = c(0.1, 0.3, 0.6),
p_h2 = c(0.6, 0.3, 0.1)
))
plot(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.