Write a plot to a sheet in an Excel workbook.

write_plot_sheet(
  wb,
  plot,
  sheet_name = "Phenotypes",
  sheet_title = "All combinations of phenotypes in all slides"
)

Arguments

wb

An openxlsx Workbook from openxlsx::createWorkbook

plot

A plot such as the output from upset_plot.

sheet_name

Optional name for the worksheet.

sheet_title

Optional title header for the plot.