tooltip: tooltip

View source: R/tooltip.R

tooltipR Documentation

tooltip

Description

Adds a text tooltip to the HTML matrix.

Usage

tooltip(x, tooltip = NULL)

Arguments

x

htlm_matrix object

tooltip

character: text to show (default: NULL)

Value

html_matrix object

Examples

library("magrittr")
library("tools")
m    <- matrix(1:12, ncol=4)
hm   <- html_matrix(m) %>% 
          tooltip(sprintf("Table has %0.f rows and %0.f columns", nrow(.), ncol(.)))
html <- toHTML(hm, browser=TRUE)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.