View source: R/layout-chain-circle-switch.R
circle_switch | R Documentation |
circle_switch(radial = waiver(), direction = NULL, what = waiver(), ...)
radial |
A |
direction |
A single string of
|
what |
What should get activated for the |
... |
These dots are for future extensions and must be empty. |
A circle_switch
object which can be added to circle_layout()
.
set.seed(123)
small_mat <- matrix(rnorm(56), nrow = 7)
rownames(small_mat) <- paste0("row", seq_len(nrow(small_mat)))
colnames(small_mat) <- paste0("column", seq_len(ncol(small_mat)))
circle_discrete(small_mat) +
ggalign() +
geom_tile(aes(y = .column_index, fill = value)) +
scale_fill_viridis_c() +
align_dendro(aes(color = branch), k = 3L) +
scale_color_brewer(palette = "Dark2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.