Creates a Shiny application with an interactive plotly visualization of continuous phylogeographic data. Hover over nodes to see labels, dates, and coordinates.
run_phylogeo_app(
treedata,
lon = "location2",
lat = "location1",
most_recent_sample = NULL,
stream = TRUE,
height_branches = "height_mean",
height_hpd = "height_median",
level = "0.80",
...
)A treedata object with phylogeographic annotations from treeio::read.beast()
name of longitude column (default: "location2")
name of latitude column (default: "location1")
Date, numeric year, or "YYYY-MM-DD" string for calibrating dates
logical; whether to use stream plotting style (default TRUE)
column for branch ages (default: "height_mean")
column for HPD ages (default: "height_median")
HPD level (default: "0.80")
Additional arguments passed to the app
A Shiny app object (run with shiny::runApp or returns when run interactively)
if (FALSE) { # \dontrun{
library(treeio)
tree <- read.beast("path/to/beast.tree")
run_phylogeo_app(tree, most_recent_sample = "2019-06-15")
} # }