geom_freqpoly {ggplot2} | R Documentation |
Frequency polygon
geom_freqpoly(mapping=NULL, data=NULL, stat="bin", position="identity", ...)
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 |
This page describes geom_freqpoly, see layer
and qplot
for how to create a complete plot from individual components.
A layer
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))
colour
: border colour
size
: size
linetype
: line type
Hadley Wickham, http://had.co.nz/
## 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)