saveggplot: save last ggplot to a file

Description Usage Arguments

View source: R/plots.R

Description

saveggplot save last printed ggplot to a file

Usage

1
2
3
4
saveggplot(file = NULL, chart = last_plot(),
  dir = ifelse(is.null(getOption(".DIR_PLOT")), "../output/",
  getOption(".DIR_PLOT")), format = c("wmf", "pdf", "eps", "svg"),
  width = 9, height = 9, ...)

Arguments

file

- name of the file. By default title of the plot is used.

chart

- name of the file. By default title of the plot is used.

dir

- destination folder - "..\/output\/" by default.

format

- wmf\/pdf\/eps\/svg

width

- width of the plot

height

- height of the plot


vh-d/VHtools documentation built on May 3, 2019, 6:11 p.m.