View source: R/shiny_functions.R
| box_vis | R Documentation |
Function for generating a visualisation for a box's selected options
box_vis(
var,
box_type = "primary",
tol = NA,
match_string = NA,
shade_label = NA,
shade_relative = TRUE,
cat_vis = NA,
df = lexopsdata::lexops
)
var |
Character vector specifying which variable is selected |
box_type |
Which type of box is it? (one of: "primary", "warning", "success", "danger", and "info") |
tol |
The area which should be highlighted. Can be a numeric vector of length two, a character vector of acceptable categories, or a list of such vectors. Each item in a |
match_string |
If the variable is being matched for, which string is it relative to. Leave as |
shade_label |
A character vector specifying what to label the levels. Order should match that of |
shade_relative |
If |
cat_vis |
which category should be highlighted (if a categorical variable)? Can be one of |
df |
A dataframe. Default is |
A ggplot2 or ggwordcloud object with the required visualisation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.