plot_densities {EGAD} | R Documentation |
The function plots multiple density curves and compares their modes
plot_densities(hists, id, col = c("lightgrey"), xlab = "", ylab = "Density", mode = "hist")
hists |
list of histogram objects or density objects |
id |
string |
col |
color for shading |
xlab |
string x-axis label |
ylab |
string y-axis label |
mode |
flag indicating histogram or density |
null
aurocsA <- density((runif(1000)+runif(1000)+runif(1000)+runif(1000))/4) aurocsB <- density((runif(1000)+runif(1000)+runif(1000))/3) aurocsC <- density(runif(1000)) hists <- list(aurocsA, aurocsB, aurocsC) temp <- plot_densities(hists,'', mode='density')