graphics_helpers: Helper functions to use various graphics devices

Description Usage Arguments Details Value Functions

Description

These helper functions generalize the use of strings (e.g., "svg", "pdf") or graphic device functions (e.g., grDevices::svg, grDevices::pdf) for in-table plots.

Usage

1
2
3
4
5
graphics_dev(filename, width, height, res, ..., dev)

is_svg(dev)

dev_chr(dev)

Arguments

filename

Passed through to the graphics device.

width, height

Plot dimensions in pixels.

res

The resolution of the plot; default is 300.

...

extra parameters passing to the graphics-device function.

dev

Character (e.g., "svg", "pdf") or function (e.g., grDevices::svg, grDevices::pdf).

Details

Value

'graphics_dev': nothing, a plot device is opened

'is_svg': logical

dev_chr: character

Functions


kableExtra documentation built on Feb. 20, 2021, 9:10 a.m.