color_bar {formattable} | R Documentation |
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 |
... |
additional parameters passed to |
See Also
Examples
formattable(mtcars, list(mpg = color_bar("lightgray", proportion)))
[Package formattable version 0.2.1 Index]