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

View source: R/graphics_helpers.R

make_inline_plotR Documentation

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

Description

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

Usage

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 April 13, 2024, 6:49 p.m.