
Apply a gtscales spec and attach its legend
gtscale_apply_legend.RdApply a gtscales spec and attach its legend
Arguments
- data
A
gt_tblcreated bygt::gt().- spec
A
gtscale_spec.
Value
A modified gt::gt table.
Examples
library(gt)
spec <- gtscale_spec_continuous(
num,
palette = c('#A0442C', 'white', '#0063B1'),
title = 'Value'
)
exibble |>
gt() |>
gtscale_apply_legend(spec)
num
char
fctr
date
time
datetime
currency
row
group
Value2,000,0004,000,0006,000,0008,000,000