Save plot to pdf.

savePlot(file, plotIn)

Arguments

file

name to give plot file

plotIn

plot object

Value

ggplot2::ggsave return

Examples

savePlot("plot.pdf", ggplot2::qplot(1:5))
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.