View source: R/layout-chain-stack-.R
| stack_layout | R Documentation |
If limits is provided, a continuous variable will be required and aligned
in the direction specified (stack_continuous). Otherwise, a discrete
variable will be required and aligned (stack_discrete).
Several aliases are provided for convenience:
stack_vertical: A special case of stack_layout that sets direction = "v".
stack_horizontal: A special case of stack_layout that sets direction = "h".
stack_discretev: A special case of stack_discrete that sets direction = "v".
stack_discreteh: A special case of stack_discrete that sets direction = "h".
stack_continuousv(): A special case of stack_free that sets direction = "v".
stack_continuoush(): A special case of stack_free that sets direction = "h".
For historical reasons, the following aliases are available:
stack_align is an alias for stack_discrete.
stack_alignv is an alias for stack_discretev.
stack_alignh is an alias for stack_discreteh.
stack_free is an alias for stack_continuous.
stack_freev is an alias for stack_continuousv.
stack_freeh is an alias for stack_continuoush.
stack_layout(
direction,
data = NULL,
...,
theme = NULL,
sizes = NA,
limits = waiver()
)
stack_horizontal(data = NULL, ..., limits = waiver())
stack_vertical(data = NULL, ..., limits = waiver())
stack_discrete(direction, data = NULL, ..., theme = NULL, sizes = NA)
stack_discretev(data = NULL, ...)
stack_discreteh(data = NULL, ...)
stack_continuous(
direction,
data = NULL,
...,
limits = NULL,
theme = NULL,
sizes = NA
)
stack_continuousv(data = NULL, ...)
stack_continuoush(data = NULL, ...)
direction |
A string indicating the direction of the stack layout,
either |
data |
Default dataset to use for the layout. If not specified, it must be supplied in each plot added to the layout:
|
... |
Additional arguments passed to |
theme |
A |
sizes |
A numeric value or a |
limits |
A |
A StackLayout object.
set.seed(123)
small_mat <- matrix(rnorm(56), nrow = 7L)
stack_horizontal(small_mat) + align_dendro()
# this is the same with:
stack_discrete("h", small_mat) + align_dendro()
stack_discreteh(small_mat) + align_dendro()
# For vertical layout:
stack_vertical(small_mat) + align_dendro()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.