Learn R Programming

openxlsx2 (version 1.4)

wb_add_sparklines: Add sparklines to a worksheet

Description

Add sparklines to a worksheet

Usage

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

Arguments

wb

A wbWorkbook

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", dims = "A3:K3", sqref = "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