Plot kernel density estimates of a continuous variable faceted by the analysis number.
# S3 method for data.frame plot_density(data, var, xlim = NULL)
data | A dataset returned by |
---|---|
var | A character vector of length 1 indicating the variable to plot. |
xlim | Limits for the x-axis passed to |
A ggplot2::ggplot
object.