savePlot: Helper function for writing plots to disc

Description Usage Arguments Value See Also

View source: R/coverage_plots.R

Description

Helper function for writing plots to disc

Usage

1
savePlot(plot, output = NULL, width = 200, height = 150, dpi = 300)

Arguments

plot

the ggplot to save

output

character string (NULL), if set, saves the plot as pdf or png to path given. If no format is given, is save as png.

width

width of output in mm

height

height of output in mm

dpi

(300) dpi of plot

Value

a ggplot object of the coverage plot, NULL if output is set, then the plot will only be saved to location.

See Also

Other coveragePlot: coverageHeatMap(), pSitePlot(), windowCoveragePlot()


ORFik documentation built on March 27, 2021, 6 p.m.