Skip to content

Instantly share code, notes, and snippets.

@andersgs
andersgs / interative_tree.R
Created February 20, 2018 03:54
Quick interactive phylogenetic tree in R
# LOAD LIBS ---------------------------------------------------------------
library(ape)
library(ggtree)
library(plotly)
# CREATE A TREE -------------------------------------------------------------
n_samples <- 20
n_grp <- 4
tree <- ape::rtree(n = n_samples)