density_plot | R Documentation |
Plot density of TRUE/FALSE distributions
density_plot(dataset, q = NULL)
dataset |
A data frame containing the calibration dataset, typically the output of an authorship analysis function like |
q |
This optional argument should be one value or a vector of values that contain the score of the disputed text(s). These are then plotted as lines crossing the density distributions. |
A ggplot2
plot with the density distributions for the scores for TRUE (typically, 'same-author') vs. FALSE (typically, 'different-author').
res <- data.frame(score = c(0.5, 0.2, 0.8, 0.01, 0.6), target = c(TRUE, FALSE, TRUE, FALSE, TRUE))
q <- c(0.11, 0.7)
density_plot(res, q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.