Skip to content

Converts R-generated plots to SVG format, allowing for fine adjustments in the result.

Usage

raw_svg(p, wid = 10, ht = 8, scaling = 2.5)

Arguments

p

An R plot object to be converted.

wid

Numeric. Desired width for the resulting SVG. Defaults to 10.

ht

Numeric. Desired height for the resulting SVG. Defaults to 8.

scaling

Numeric. Scaling factor applied to the plot. Defaults to 2.5.

Value

An HTML object containing the SVG of the plot.