geom_freqpoly {ggplot2} | R Documentation |
Frequency polygon.
geom_freqpoly(mapping = NULL, data = NULL, stat = "bin", position = "identity", ...)
mapping |
The aesthetic mapping, usually constructed
with |
data |
A layer specific dataset - only needed if you want to override the plot defaults. |
stat |
The statistical transformation to use on the data for this layer. |
position |
The position adjustment to use for overlappling points on this layer |
... |
other arguments passed on to
|
geom_freqpoly
understands the following aesthetics (required aesthetics are in bold):
alpha
colour
linetype
size
geom_histogram
: histograms
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)