save.plot: Save plot

Description Usage Arguments

View source: R/SavePlot.R

Description

Wrapper for ggsave that also crops and converts to eps if necessary

Usage

1
2
save.plot(plot_object, file_name, width = 13.2, height = width * 0.65,
  device = "eps", convert_pdf_to_eps = TRUE)

Arguments

plot_object

The ggplot object. No default.

file_name

The plot file name. No default.

width

The width of the plot in cm. Defaults to 13.2.

height

The height of the plot in cm. Default to 9.

device

Character vector with the name of the image device to use. Defaults to "eps".

convert_pdf_to_eps

Logical. If TRUE and device = "pdf" then an attempt to convert that pdf using pdftops to eps is made. Defaults to TRUE.


citronmeliss/predictionpackr documentation built on Feb. 10, 2020, 12:19 a.m.