color_box: Return a color for valueBox

View source: R/utils_helpers.R

color_boxR Documentation

Return a color for valueBox

Description

Takes a value and returns the color 'green' if positive, the color 'red', if negative, and the color 'blue' for anything else.

Usage

color_box(number = 0)

Arguments

number

a number

Details

For the arguments for valueBox, query '?shinydashboard::valueBox'.

Value

a color for valueBox

Examples

## Not run: 
color_box(number = 0)
color_box(number = 1)
color_box(number = -1)
color_box(number = NA)

## End(Not run)

RobWiederstein/econdash documentation built on Oct. 2, 2022, 3:42 a.m.