plot_tree: Plot a phylogenetic tree

Description Usage Arguments Value Examples

View source: R/sweepmetrics.R

Description

Plot a phylogenetic tree

Usage

1
2
plot_tree(edges, output_dir = NA, output_filename = NA,
  fill = "black", display = TRUE)

Arguments

edges

dataframe comprising an adjacency matrix (and optionally including Population column)

output_dir

folder in which to save the image file; if NA then plots are displayed on screen instead

output_filename

name of output image file

fill

fill colour of the nodes (excluding the root, which is always red)

display

whether to display the tree

Value

either an image file or a plot displyed on screen

Examples

1
2
edges1 <- data.frame(Parent = c(0,1,1,2,2,3,3), Identity = 1:7, Population = c(2,10,5,10,20,10,3))
plot_tree(edges1)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.