color_bar | R Documentation |
Create a color-bar formatter
color_bar(color = "lightgray", fun = proportion, ...)
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 |
normalize_bar()
, proportion_bar()
formattable(mtcars, list(mpg = color_bar("lightgray", proportion)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.