my_circo {pcutils} | R Documentation |
My circo plot
Description
My circo plot
Usage
my_circo(
df,
reorder = TRUE,
pal = NULL,
mode = c("circlize", "chorddiag")[1],
legend = TRUE,
...
)
Arguments
df |
dataframe with three column |
reorder |
reorder by number? |
pal |
a vector of colors, you can get from here too: |
mode |
"circlize","chorddiag" |
legend |
plot legend? |
... |
Value
chordDiagram
Examples
if (requireNamespace("circlize")) {
data.frame(
a = c("a", "a", "b", "b", "c"),
b = c("a", LETTERS[2:5]), c = 1:5
) %>% my_circo(mode = "circlize")
data(otutab)
cbind(taxonomy, num = rowSums(otutab))[1:10, c(2, 6, 8)] -> test
my_circo(test)
}
[Package pcutils version 0.2.6 Index]