Write a formatted cell percent table to a sheet in an Excel workbook.

write_percents_sheet(
  wb,
  percents,
  sheet_name = "Cell Percents",
  sheet_title = "Percentage of Total Cells"
)

Arguments

wb

An openxlsx Workbook from openxlsx::createWorkbook

percents

A data frame with columns for Slide ID, Tissue Category, and percent.

sheet_name

Optional name for the worksheet.

sheet_title

Optional title header for the table.