View source: R/params-helpers.R
| parse_plot_params | R Documentation |
This is the ONLY place that converts raw UI strings (comma-separated
highlight lists, "A:#FF0000,B:#00FF00" color mappings, "k:k,ss:ss"
taxonomy level specs, "auto"/"tab"/"comma" separators) into the
structured R objects expected by plot_timetree().
parse_plot_params(
color_mapping = NULL,
taxonomy_levels = NULL,
highlight = NULL,
taxonomy_file_sep = "auto"
)
color_mapping |
Character string "GroupA:#FF0000,GroupB:#00FF00", or an
already-structured named vector/list. A single bare hex ("#FF0000") is
returned as a length-1 color vector (M-E2 / L-D7). |
taxonomy_levels |
Character string "k:k,ss:ss", or a pre-built
|
highlight |
Character string "LUCA, LACA", or a character vector.
|
taxonomy_file_sep |
One of "auto", "tab", "comma", or an already-resolved separator (a literal tab, ",", or "auto"). |
Both the CLI (build_plot_timetree_params) and the Shiny
server() must route their raw inputs through this function so that
parsing logic lives in exactly one location.
A named list with components:
color_mapping |
named character vector or |
taxonomy_levels |
list(codes, names) or |
highlight |
character vector or |
taxonomy_file_sep |
character scalar |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.