Skip to contents

A wrapper around the Cairo::Cairo() function, specifically configured for PNG output.

Usage

png2(filename, width = 25, height = 18, units = "cm", dpi = 380, ...)

Arguments

filename

output file name

width

width of the output image in cm

height

height of the output image in cm

units

units for width and height (default: "cm")

dpi

resolution of the output image (default: 380)

...

additional arguments passed to Cairo::Cairo()

Value

a Cairo device for plotting