Skip to contents

Draws a [surface_figure()] on a PNG device sized to its panels. Uses the `ragg` device when available, otherwise [grDevices::png()].

Usage

write_surface_figure(x, file, scale = 1)

Arguments

x

A `surface_figure` object.

file

Output PNG path.

scale

Multiplier applied to the figure's pixel dimensions.

Value

The normalized path, invisibly.

See also

[surface_figure()], [write_surface_rgba()] for single panels.