densityPlotR: Generate a density plot using a formula

Description Usage Arguments Author(s) See Also Examples

View source: R/densityPlotR.R

Description

Given two groups with scores on a quantitative variable, densityPlotR will draw both distributions, one for each group.

Usage

1

Arguments

formula

a formula object where the grouping variable is on the right side of the ~ and the response variable (quantitative) is on the left side of the ~.

data

a dataset containing the variables listed in the formula

colors

a vector the same length as the number of levels of the grouping variable indicating the colors to be used for the density lines

...

other arguments passed to the plot function

Author(s)

Dustin Fife

See Also

boxplot, prism.plots, plotSigBars

Examples

1
densityPlotR(Petal.Width~Species, data=iris)

dustinfife/fifer documentation built on Oct. 31, 2020, 3:36 p.m.