View source: R/utils_helpers.R
color_box | R Documentation |
Takes a value and returns the color 'green' if positive, the color 'red', if negative, and the color 'blue' for anything else.
color_box(number = 0)
number |
a number |
For the arguments for valueBox, query '?shinydashboard::valueBox'.
a color for valueBox
## Not run: color_box(number = 0) color_box(number = 1) color_box(number = -1) color_box(number = NA) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.