ggplot_save_function: ggplot_save_function

View source: R/auxiliary_visuals.R

ggplot_save_functionR Documentation

ggplot_save_function

Description

Function to automatically save plots to directory of interest

Usage

ggplot_save_function(
  gobject,
  plot_object,
  save_dir = NULL,
  save_folder = NULL,
  save_name = NULL,
  default_save_name = "giotto_plot",
  save_format = NULL,
  show_saved_plot = F,
  ncol = 1,
  nrow = 1,
  scale = 1,
  base_width = NULL,
  base_height = NULL,
  base_aspect_ratio = NULL,
  units = NULL,
  dpi = NULL,
  limitsize = TRUE,
  ...
)

Arguments

gobject

giotto object

plot_object

ggplot object to plot

save_dir

directory to save to

save_folder

folder in save_dir to save to

save_name

name of plot

save_format

format (e.g. png, tiff, pdf, ...)

show_saved_plot

load & display the saved plot

ncol

number of columns

nrow

number of rows

scale

scale

base_width

width

base_height

height

base_aspect_ratio

aspect ratio

units

units

dpi

Plot resolution

limitsize

When TRUE (the default), ggsave will not save images larger than 50x50 inches, to prevent the common error of specifying dimensions in pixels.

...

additional parameters to cowplot::save_plot

See Also

save_plot


RubD/Giotto documentation built on April 29, 2023, 5:52 p.m.