Description Usage Arguments Details Examples
Plot a btree object using ggplot2
1  | plot_btree(btree, labelCol = "NodeId")
 | 
btree | 
 btree to plot  | 
labelCol | 
 name of the column whose values should be plotted as node labels/info  | 
Returns a ggplot plot of a btree
1 2 3 4  | library(data.table)
library(ggplot2)
mytree <- make_perfect_btree(4)
plot_btree(mytree)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.