powered by
Add sparklines to a worksheet
wb_add_sparklines(wb, sheet = current_sheet(), sparklines)
A wbWorkbook
wbWorkbook
sheet to add the sparklines to
sparklines object created with create_sparklines()
create_sparklines()
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