plot_btree: Plot btree

Description Usage Arguments Details Examples

Description

Plot a btree object using ggplot2

Usage

1
plot_btree(btree, labelCol = "NodeId")

Arguments

btree

btree to plot

labelCol

name of the column whose values should be plotted as node labels/info

Details

Returns a ggplot plot of a btree

Examples

1
2
3
4
library(data.table)
library(ggplot2)
mytree <- make_perfect_btree(4)
plot_btree(mytree)

ben519/btree documentation built on May 12, 2019, 10:56 a.m.