geom_xsidepoint | R Documentation |
The ggside variants of geom_point is geom_xsidepoint()
and
geom_ysidepoint()
. Both variants inherit from geom_point,
thus the only difference is where the data is plotted. The xside
variant will
plot data along the x-axis, while the yside
variant will plot data along the
y-axis.
geom_xsidepoint(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
geom_ysidepoint(
mapping = NULL,
data = NULL,
stat = "identity",
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(depth, table, alpha = .2)) +
geom_point() +
geom_ysidepoint(aes(x = price)) +
geom_xsidepoint(aes(y = price)) +
theme(
ggside.panel.scale = .3
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.