plot_densities {EGAD} | R Documentation

## Plot densities

### Description

The function plots multiple density curves and compares their modes

### Usage

    plot_densities(hists, id, col = c("lightgrey"), xlab = "",
      ylab = "Density", mode = "hist")

### Arguments

`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

### Value

null

### Examples

    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')

[Package EGAD version 1.8.0 Index]