Learn R Programming

openxlsx2 (version 0.7)

wb_add_sparklines: add sparklines to workbook

Description

add sparklines to workbook

Usage

wb_add_sparklines(wb, sheet = current_sheet(), sparklines)

Arguments

wb

workbook

sheet

sheet to add the sparklines to

sparklines

sparklines object created with create_sparklines()

See Also

create_sparklines()

Examples

Run this code
 sl <- create_sparklines("Sheet 1", "A3:K3", "L3")
 wb <- wb_workbook() %>%
   wb_add_worksheet() %>%
   wb_add_data(x = mtcars) %>%
   wb_add_sparklines(sparklines = sl)

Run the code above in your browser using DataLab