make_inline_plot: Combine file (or svg text) and parameters into a...

Description Usage Arguments Value

View source: R/graphics_helpers.R

Description

Combine file (or svg text) and parameters into a 'kableExtraInlinePlots' object

Usage

1
make_inline_plot(filename, file_ext, dev, width, height, res, del = TRUE)

Arguments

filename

Passed through to the graphics device.

file_ext

Character, something like "png".

dev

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

width, height

Plot dimensions in pixels.

res

The resolution of the plot; default is 300.

del

If the file is svg-like, then the default action is to read the file into an embedded SVG object; once done, the file is no longer used. The default action is to delete this file early, set this to 'FALSE' to keep the file.

Value

list object, with class 'kableExtraInlinePlots'


haozhu233/kableExtra documentation built on Feb. 27, 2021, 2:08 p.m.