Allows one to compare empirical densities of different distributions in a simple manner. The density is used as graphs with multiple histograms are too crowded. The usage is similar to side-by-side boxplots.
x may be a sequence of data vectors (eg. x,y,z), a data frame with numeric column vectors or a model formula
You can pass in a bandwidth argument such as bw="SJ". See density for details. A legend will be placed for you automatically. To overide the positioning set do.legend="manual". To skip the legend, set do.legend=FALSE.
Makes a plot
Basically a modified boxplot function. As well it should be as it serves the same utility: comparing distributions.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.