hot_heatmap: Handsontable widget

Description Usage Arguments Examples

View source: R/rhandsontable.R

Description

Add heatmap to table.

Usage

1
hot_heatmap(hot, cols, color_scale = c("#ED6D47", "#17F556"), renderer = NULL)

Arguments

hot

rhandsontable object

cols

numeric vector of columns to include in the heatmap. If missing all columns are used.

color_scale

character vector that includes the lower and upper colors

renderer

character defining a Javascript function to be used to determine the cell colors. If missing, rhandsontable:::renderer_heatmap is used.

Examples

1
2
3
4
5
MAT = matrix(rnorm(50), nrow = 10, dimnames = list(LETTERS[1:10],
             letters[1:5]))

rhandsontable(MAT) %>%
 hot_heatmap()

Example output



rhandsontable documentation built on May 27, 2021, 5:07 p.m.