Learn R Programming

BCT (version 1.2)

show_tree: Plot tree with given contexts

Description

Plots a tree depicting a model with the given set of contexts.

Usage

show_tree(s)

Arguments

s

vector containing the contexts of the leaves of the desired tree.

Value

plot of the desired tree model.

See Also

BCT, draw_models

Examples

Run this code
# NOT RUN {
# Construct an example vector:
r <- c("a", "ab", "aab", "b", "ba")

show_tree(r)

# If the input contains digits:
q <- c(11,1,0)

show_tree(q)
# }

Run the code above in your browser using DataLab