Skip to contents

Export report plots with a sizing similar to that of the plot created by insert_svg(). Plots are exported as SVG if the file extension is .svg otherwise they are exported in PNG format.

Usage

export_plot(gg_plot, filename, width, height)

Arguments

gg_plot

The ggplot to render

filename

The file to export

width

The width in report columns

height

The height in report columns