geom_xsidefreqpoly | R Documentation |
The xside and yside variants of geom_freqpoly is geom_xsidefreqpoly and geom_ysidefreqpoly.
geom_xsidefreqpoly(
mapping = NULL,
data = NULL,
stat = "bin",
position = "identity",
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
geom_ysidefreqpoly(
mapping = NULL,
data = NULL,
stat = "bin",
position = "identity",
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
XLayer or YLayer object to be added to a ggplot object
ggplot(diamonds, aes(price, carat, colour = cut)) +
geom_point() +
geom_xsidefreqpoly(aes(y=after_stat(count)),binwidth = 500) +
geom_ysidefreqpoly(aes(x=after_stat(count)),binwidth = .2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.