Learn R Programming

stoRy (version 0.1.5)

print_tree: Theme hierarchy tree view.

Description

print_tree Print a theme and its descendents in a tree format.

Usage

print_tree(mytheme, pruneMethod = c("simple", "dist"), limit = 100)

Arguments

mytheme

A pkgstoRy package theme object.

pruneMethod

default c("simple", "dist"). The "Simple" option is the default and prints up to limit themes as the appear in order in the tree. The "dist" option prints the more upper level themes in the hierarchy.

limit

The maximum number of themes to be printed. The default valuse is 100.

Value

Given a theme object as input, print_tree prints a tree structure of its descendent themes.

Examples

Run this code
# NOT RUN {
########################################################################
# Display the "the human condition" theme hierarchy in tree format     #
########################################################################
theme_name <- "the human condition"
mytheme <- theme$new(theme_name)
print_tree(mytheme, pruneMethod = "dist", limit = 50)
# }

Run the code above in your browser using DataLab