View source: R/position-stack-.R
position_stack_ | R Documentation |
position_stack_
stacks bars on top of each other, conditional on locations.
position_stack_(vjust = 1, reverse = FALSE)
position_fill_(vjust = 1, reverse = FALSE)
vjust |
Vertical adjustment for geoms that have a position
(like points or lines), not a dimension (like bars or areas). Set to
|
reverse |
If |
It is built based on position_stack
, but used for multiple locations, such as
geom_hist_
or geom_density_
. Rather than stack everything on top of each other,
position_stack_
stacks bars based on locations.
Check examples to see the difference.
See geom_hist_
, geom_density_
,
geom_serialaxes_density
and geom_serialaxes_hist
for more examples.
Other position adjustments for multiple locations:
position_identity_
,
position_dodge_
, position_dodge2_
Parent: position_stack
p <- ggplot(iris,
mapping = aes(Sepal.Length = Sepal.Length,
Sepal.Width = Sepal.Width,
Petal.Length = Petal.Length,
Petal.Width = Petal.Width,
colour = Species))
p +
geom_serialaxes_density(position = position_stack_())
p +
geom_serialaxes_density(position = position_stack())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.