Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

color_bar

Create a color-bar formatter


Description

Create a color-bar formatter

Usage

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

Examples

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

formattable

Create 'Formattable' Data Structures

v0.2.1
MIT + file LICENSE
Authors
Kun Ren [aut, cre], Kenton Russell [aut]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.