Write a formatted density table to a sheet in an Excel workbook.

write_density_sheet(
  wb,
  densities,
  sheet_name = "Cell Densities",
  sheet_title = "Cell Densities (cells/mm2)"
)

Arguments

wb

An openxlsx Workbook from openxlsx::createWorkbook

densities

A data frame with columns for Slide ID, Tissue Category, Tissue Area and densities, such as the output of compute_density_from_table.

sheet_name

Optional name for the worksheet.

sheet_title

Optional title header for the table.