Build a tree.

e_tree(e, parent, child, rm.x = TRUE, rm.y = TRUE, ...)

Arguments

e

An echarts4r object as returned by e_charts.

parent, child

Edges.

rm.x, rm.y

Whether to remove x and y axis, defaults to TRUE.

...

Any other option to pass, check See Also section.

See also

Examples

df <- data.frame( parent = c("earth","earth","forest","forest","ocean","ocean","ocean","ocean"), child = c("ocean","forest","tree","sasquatch","fish","seaweed","mantis shrimp","sea monster") ) df %>% e_charts() %>% e_tree(parent, child)