View source: R/compose-stack.R
compose_stack | R Documentation |
This guide can stack other guides.
compose_stack(
...,
args = list(),
key = NULL,
title = waiver(),
side.titles = waiver(),
angle = waiver(),
theme = NULL,
order = 0,
drop = NULL,
position = waiver(),
available_aes = NULL
)
... |
Guides to stack in composition. Each guide can be specified as one of the following:
|
args |
A |
key |
A standard key specification. The key is shared
among all guides that have |
title |
A |
side.titles |
A |
angle |
A specification for the text angle. Compared to setting the
|
theme |
A |
order |
A positive |
drop |
An |
position |
A |
available_aes |
A |
A <ComposeStack>
guide object.
Other composition:
compose_crux()
,
compose_ontop()
,
compose_sandwich()
,
guide-composition
ggplot() +
geom_function(fun = dnorm, xlim = c(-3, 3)) +
guides(x = compose_stack(
"axis", "axis",
side.titles = c("first", "second")
)) +
# Add margin to make room for side titles
theme(plot.margin = margin(5.5, 5.5, 5.5, 11))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.