export_plot_svg: Export plot to a SVG file

View source: R/export_plot.r

export_plot_svgR Documentation

Export plot to a SVG file

Description

This function exports a plot to a SVG file. The default plot dimension (width/height) follows the golden ratio, 1.618.

Usage

export_plot_svg(plot, file, width = 4.75, height = 2.94)

Arguments

plot

An object of the ggplot class

file

Output file directory

width

Plot width in inches

height

Plot height in inches

Value

This function outputs an object of the ggplot class to a SVG file.

Author(s)

Kevin Surya

References

Urbanek and Horner (2022)


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.