Takes a ggplot2 object created by autoplot.treedata and converts it to an interactive plotly visualization.

ggplotly_phylogeo(p, tooltip = "all")

Arguments

p

A ggplot2 object from autoplot.treedata

tooltip

Which aesthetics to include in tooltip (default: all)

Value

A plotly object

Examples

if (FALSE) { # \dontrun{
library(treeio)
tree <- read.beast("path/to/beast.tree")
p <- autoplot(tree, most_recent_sample = 2019)
ggplotly_phylogeo(p)
} # }