Learn R Programming

EGAD (version 1.0.3)

plot_density_compare: Plot density comparisons

Description

The function plots two density curves and compares their modes

Usage

plot_density_compare(aucA, aucB, col = "lightgrey", xlab = "AUROC (neighbor voting)", ylab = "Density", mode = TRUE)

Arguments

aucA
numeric array of aurocs
aucB
numeric array of aurocs
col
color of lines
xlab
string label
ylab
string label
mode
boolean to plot mode or mean

Value

null

Examples

Run this code
aurocsA <- (runif(1000)+runif(1000)+runif(1000)+runif(1000))/4
aurocsB <- runif(1000)
plot_density_compare(aurocsA, aurocsB)

Run the code above in your browser using DataLab