save_ggplot: Save plot

Description Usage Arguments Details Examples

View source: R/save_ggplot.R

Description

This will save the last ggplot call

Usage

1
2
3
4
5
6
7
8
9
save_ggplot(
  filename = "Rplot",
  format = "pdf",
  dingbats = FALSE,
  dpi = 300,
  h = 6,
  w = 6,
  units = "in"
)

Arguments

filename

The file name to be written

format

File extension can be "pdf", "svg", "tiff", "png", "jpg"

dingbats

FALSE or TRUE (for pdf only)

dpi

resolution for raster output types

h

The height

w

The Width

units

"in", "cm"

Details

This will save the save ggplot object that was written to the device.

Examples

1
save_plot(filename = "Cluster plot", format = "pdf")

kgellatl/SignallingSingleCell documentation built on Dec. 29, 2021, 4:12 p.m.