Description Usage Arguments Value Examples
This S3 method plots a mtree
tree, using ggraph
layout
functions. The tree is annotated and coloured in each node (i.e.,
cluster) that contain a driver event annotated. The driver id is also
reported via ggrepel
annotation functions.
1 2 | plot.mtree(x, node_palette = colorRampPalette(RColorBrewer::brewer.pal(n
= 9, "Set1")), tree_layout = "tree", ...)
|
x |
A |
node_palette |
A function that applied to a number will return a set of colors.
By default this is a |
tree_layout |
A layout that can be used by |
... |
Extra S3 parameters |
A ggplot
plot of the tree.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(mtree_input)
x = mtrees(
mtree_input$binary_clusters,
mtree_input$drivers,
mtree_input$samples,
mtree_input$patient,
mtree_input$sspace.cutoff,
mtree_input$n.sampling,
mtree_input$store.max
)
plot(x[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.