saveGSEAplot: Save GSEA plot with optimal dimensions

View source: R/richGSEA.R

saveGSEAplotR Documentation

Save GSEA plot with optimal dimensions

Description

Save GSEA plot with optimal dimensions

Usage

saveGSEAplot(
  plot_obj,
  filename,
  width = 12,
  height = 8,
  dpi = 300,
  device = NULL
)

Arguments

plot_obj

ggplot object from plotGSEA

filename

output filename

width

plot width in inches

height

plot height in inches

dpi

resolution in dots per inch

device

output device (auto-detected from filename if NULL)

Author(s)

Kai Guo

Examples

## Not run: 
p <- plotGSEA(object = hsako, gseaRes = res)
saveGSEAplot(p, "gsea_plot.pdf")
saveGSEAplot(p, "gsea_plot.png", dpi = 600)

## End(Not run)

guokai8/richR documentation built on June 10, 2025, 4:51 a.m.