Skip to contents

Save Plot to File

Usage

save_plot(plot, filename, width = 10, height = 8, dpi = 300)

Arguments

plot

ggplot object

filename

Output filename

width

Plot width in inches

height

Plot height in inches

dpi

Resolution in dots per inch

Value

Invisible NULL

Examples

if (FALSE) { # \dontrun{
p <- plot_qte_heatmap(qte_results)
save_plot(p, "heatmap.png")
} # }