color_bar: Create a color-bar formatter

Description Usage Arguments See Also Examples

View source: R/formatter.R

Description

Create a color-bar formatter

Usage

1
color_bar(color = "lightgray", fun = "proportion", ...)

Arguments

color

the background color of the bars

fun

the transform function that maps the input vector to values from 0 to 1. Uses proportion by default.

...

additional parameters passed to fun

See Also

normalize_bar, proportion_bar

Examples

1
formattable(mtcars, list(mpg = color_bar("lightgray", proportion)))

Example output



formattable documentation built on Jan. 13, 2021, 7:17 a.m.