Module UI

draw_server(id, phylogeny, modules = "L")

draw_ui(id, phylogeny, modules = "L")

Arguments

id

character, namespace id

phylogeny

object of class tbl_tree or phylo to draw

modules

modules to include in the tree-drawing application (or page). See ?show_modules for available options

Value

UI and server logic for plotting and interactive modification of a phylogeny

Details

Trees with > 200 tips will in most cases be illegible. Tip names become illegible in smaller trees.

Examples

if (interactive()) { library(ape) data("bird.orders") ui <- fluidPage( titlePanel("Shiny module to draw phylogenetic trees"), mainPanel( draw_ui(id = "id", modules = "LPTB") ) ) server <- function(input, output, session) { draw_server(id = "id", phylogeny = bird.orders, modules = "LPTB") } shinyApp(ui = ui, server = server) }