plot.ctree | R Documentation |
ctree
tree.This S3 method plots a ctree
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.
## S3 method for class 'ctree' plot( 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.
data('ctree_input') x = ctrees( ctree_input$CCF_clusters, ctree_input$drivers, ctree_input$samples, ctree_input$patient, ctree_input$sspace.cutoff, ctree_input$n.sampling, ctree_input$store.max ) plot(x[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.