multidensity: plot multiple density functions on top of each other

Description Usage Arguments Author(s) Examples

Description

plots multiple density functions on top of each other, calculating the correct xlim, ylim, etc.

Usage

1
multidensity(x, col = palette(), lwd = 1, lty = 1, xlim, ylab = "Density", ...)

Arguments

x

list of values to create density from (can be a data.frame which where columns are elements of the list)

col

colors for each density plot

lwd

lwd for each density plot

lty

lty for each density plot

xlim

user defined xlim

ylab

user defined ylab

...

plotting parameters passed to initial plot command.

Author(s)

Elizabeth Purdom

Examples

1
2
x<-lapply(c(1,2,3),function(x){rnorm(100,mean=x)})
multidensity(x)

Example output



cancerTiming documentation built on May 2, 2019, 9:28 a.m.