geom_freqpoly {ggplot2}R Documentation

geom_freqpoly

Description

Frequency polygon

Usage

geom_freqpoly(mapping=NULL, data=NULL, stat="bin", position="identity", ...)

Arguments

mapping mapping between variables and aesthetics generated by aes
data dataset used in this layer, if not specified uses plot dataset
stat statistic used by this layer
position position adjustment used by this layer
... ignored

Details

This page describes geom_freqpoly, see layer and qplot for how to create a complete plot from individual components.

Value

A layer

Aesthetics

The following aesthetics can be used with geom_freqpoly. Aesthetics are mapped to variables in the data with the aes function: geom\_freqpoly(\code{aes}(x = var))

Author(s)

Hadley Wickham, http://had.co.nz/

See Also

Examples

## Not run: 
qplot(carat, data = diamonds, geom="freqpoly")
qplot(carat, data = diamonds, geom="freqpoly", binwidth = 0.1)
qplot(carat, data = diamonds, geom="freqpoly", binwidth = 0.01)

qplot(price, data = diamonds, geom="freqpoly", binwidth = 1000)
qplot(price, data = diamonds, geom="freqpoly", binwidth = 1000, 
  colour = color)
qplot(price, ..density.., data = diamonds, geom="freqpoly", 
  binwidth = 1000, colour = color)

## End(Not run)

[Package ggplot2 version 0.8.2 Index]