View source: R/non_Seurat_related.R
| getSankeyData | R Documentation |
ref: https://observablehq.com/ at d3/sankey version: 2.0 define flow color as source//done v2.1 supply 3 color method: static, source, target//done
getSankeyData( tbl1, prefix_left = "", prefix_right = "", colorMethod = "source", omitR = NULL, omitC = NULL, rm.na = T )
tbl1 |
a table produced by table() |
prefix_left |
add a prefix to left nodes |
prefix_right |
add a prefix to right nodes |
colorMethod |
"static", "source", "target" |
omitR |
omitR rownames |
omitC |
omitC column names |
omit |
omit which rows/paraLeft |
getSankeyData( table(mtcars$gear, mtcars$carb))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.