densities: Density plots

Description Usage Arguments Details Value Examples

View source: R/densities.R

Description

Create desnsity plots for all quantitative variables in a data frame.

Usage

1
densities(data, fill = "deepskyblue2", adjust = 1)

Arguments

data

data frame

fill

fill color for density plots

adjust

a factor multiplied by the smoothing bandwidth. See details.

Details

The densities function will only plot quantitative variables from a data frame. Categorical variables are ignored.

The adjust parameter mulitplies the smoothing parameter. For example adjust = 2 will make the density plots twice as smooth. The adjust = 1/2 will make the density plots half as smooth (i.e., twice as spiky).

Value

a ggplot graph

Examples

1
2
3
4
5
densities(cars74)

densities(cars74, adjust=2)

densities(cars74, adjust=1/2)

Rkabacoff/qacr documentation built on March 20, 2021, 3:03 p.m.