Geom.density

Draw a kernel density estimate from data. An alias for Geom.line with Stat.density.

Aesthetics

Examples

plot(dataset("ggplot2", "diamonds"), x="Price", Geom.density)
Price -1×10⁴ 0 1×10⁴ 2×10⁴ 3×10⁴ 0.0000 0.0001 0.0002 0.0003 0.0004
plot(dataset("ggplot2", "diamonds"), x="Price", color="Cut", Geom.density)
Price -1×10⁴ 0 1×10⁴ 2×10⁴ 3×10⁴ Ideal Premium Good Very Good Fair Cut 0.0000 0.0001 0.0002 0.0003 0.0004 0.0005