View source: R/auxiliary_visuals.R
| ggplot_save_function | R Documentation | 
Function to automatically save plots to directory of interest
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,
  ...
)
| 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 | 
save_plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.