red_green_tiles.: Red/Green Tile Formatters

Description Usage Arguments Note

Description

These functions shade the background of a kable cell either red or green, preserving the distance from zero which remains white.

Usage

1
2
3
4
5
red_green_tiles.g(x, data = NULL)

red_green_tiles.r(x, data = NULL)

w2rg(x, green_up = T)

Arguments

x

A numeric column of a data.frame or data.table

green_up

Logical, default is TRUE where green values are positive. Though a user is unlikely to ever use w2rg by itself

Note

For best usage, apply the color transformation with mutate() and then pass the mutated object through kable() with escape = F and format = 'html'. If kableExtra::kable_styling() is used then use protect_latex = F.


joshua-ruf/fidelis documentation built on July 20, 2019, 1:56 a.m.