histDens: Histogram with a Density Line

View source: R/histDens.R

histDensR Documentation

Histogram with a Density Line

Description

Plot a histrogram and add a kernel density line.

Usage

histDens( x, breaks = "Sturges", ... )

Arguments

x

values of the variable.

breaks

passed to hist.

...

further arguments are passed to hist.

Author(s)

Arne Henningsen

Examples

   set.seed( 123 )
   x <- rnorm( 100 )
   histDens( x )
   histDens( x, 20 )
   histDens( x, 20, main = "My Title" )

miscTools documentation built on May 3, 2023, 5:11 p.m.