Function to automatically save plots to directory of interest
general_save_function(
gobject,
plot_object,
save_dir = NULL,
save_folder = NULL,
save_name = NULL,
default_save_name = "giotto_plot",
save_format = c("png", "tiff", "pdf", "svg"),
show_saved_plot = F,
base_width = NULL,
base_height = NULL,
base_aspect_ratio = NULL,
units = NULL,
dpi = NULL,
...
)
giotto object
non-ggplot object to plot
directory to save to
folder in save_dir to save to
name of plot
format (e.g. png, tiff, pdf, ...)
load & display the saved plot
width
height
aspect ratio
units
Plot resolution