geom_freqpoly(mapping = NULL, data = NULL, stat = "bin", position = "identity", ...)
aes or aes_string. Only
needs to be set at the layer level if you are overriding
the plot defaults.layer. This can include aesthetics whose
values you want to set, not map. See layer
for more details.Frequency polygon.
geom_freqpoly understands the following aesthetics (required aesthetics are in bold):
alpha
colour
linetype
size
qplot(carat, data = diamonds, geom = "freqpoly")stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
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)
geom_histogram: histograms