save_plot: Save a ggplot2 plot Save plot with specific needs i.e. plot...

Description Usage Arguments Value

View source: R/save_plot.R

Description

Save a ggplot2 plot Save plot with specific needs i.e. plot for a Beamer presentation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
save_plot(
  plot,
  file_name = NULL,
  path = NULL,
  output = NULL,
  scale = 1,
  width = NULL,
  height = NULL,
  device = "pdf",
  Save = TRUE,
  units = "cm"
)

Arguments

plot

a ggplot2 object

file_name

a charachter string to save the plot

path

a charachter string for the directory where to save the plot

output

type of output: NULL, Beamer, Beamer/2 or Beamer_height

scale

a numeric value for the scale of the plot

width

a numeric value in cm

height

a numeric value in cm

device

a charachter string for the type of devince to be saved pdf, png, jpeg...

Save

a boolean, if FALSE plot is not saved

units

a boolean, if FALSE plot is not saved

Value

save a plot


JBLecomte/JBUtilities documentation built on March 31, 2021, 7:25 p.m.