Skip to contents

plot the tree as a network graph

Usage

# S4 method for class 'nicetree'
plot(
  x,
  circle = TRUE,
  add_text = FALSE,
  leaf_label = FALSE,
  stem_label = TRUE,
  include_names = FALSE,
  text_size = 10,
  text_angle = 45,
  width = 500,
  height = 500,
  hover_msg = TRUE
)

Arguments

x

a tree (object of class nicetree)

circle

whether or not to arrange graph over a circle

add_text

whether or not to label with textual info

leaf_label

whether or not leaf nodes will be labelled

stem_label

whether or not stem nodes will be labelled

include_names

whether or not to include common names in text

text_size

annotation text size

text_angle

annotation text angle

width

graph width

height

graph height

hover_msg

whether to remind the user that they can hover over nodes

Value

object of class plotly

Details

plots an object of class nicetree as a network, with some display options. Users can hover over nodes to display textual information that would otherwise clutter up the graph.

Examples

h <- nicetree()
cutting(h, "SKINCO") |> plot()
#> Remember you can hover over nodes to see text