dt_gradient: Color gradient fill for DataTables

Description Usage Arguments Value

View source: R/fct_dt_styling.R

Description

Makes a DataTable HTML widget background fill for cells corresponding to the numeric value. Either as a continuous scale gradient between red (negative) and green (positive) or as a simple positive (green) and negative (red) fill.

Usage

1
2
3
4
5
6
7
dt_gradient(
  table,
  columns,
  colors,
  gradient_type = c("gradient", "posneg"),
  ...
)

Arguments

table

a table to display

columns

names of columns to prepare

colors

vector of two colors for the min/max of the gradient

gradient_type

either gradient or posneg

...

named arguments passed onto DT::datatable

Value

A DataTable HTML widget with gradient color coding


teofiln/gene.editing.dash documentation built on Feb. 21, 2022, 12:59 a.m.