Skip to contents

Plots the underlying tree structure used by an interval_index.

Usage

# S3 method for class 'interval_index'
plot(x, ...)

Arguments

x

An interval_index.

...

Passed to the internal tree plotting routine.

Details

Visualizes the internal finger-tree structure used for interval queries.

Examples

ix <- interval_index("a", "b", "c", start = c(1, 3, 5), end = c(2, 4, 6))
plot(ix)
#> Error in plot_tree(x, ...): Package 'igraph' is required for plot_tree(). Install it with install.packages('igraph').