Skip to contents

plot_save helper function

Usage

plot_save(
  plot,
  data,
  file_name,
  destination = c("plot", "save", "png", "svg", "tiff", "jpeg"),
  height = 5,
  width = 8,
  ...
)

Arguments

plot

a ggplot2 object

data

a tidyproteomics data object

file_name

a character string

destination

a character string

height

a numeric

width

a numeric

...

passthrough ggplot2::ggsave arguments

Value

a ggplot2 object