Skip to contents

Save CytoSPACER visualization to files.

Usage

save_cytospace_plot(
  plot,
  output_dir,
  prefix = "",
  formats = c("png", "pdf"),
  width = 10,
  height = 8,
  dpi = 300
)

Arguments

plot

A ggplot2 object.

output_dir

Output directory.

prefix

File name prefix.

formats

File formats to save. Default is c("png", "pdf").

width

Plot width in inches. Default is 10.

height

Plot height in inches. Default is 8.

dpi

Resolution for raster formats. Default is 300.

Value

Invisibly returns file paths.