Add drawings to a worksheet. This requires the rvg
package.
Usage
wb_add_drawing(
wb,
sheet = current_sheet(),
dims = "A1",
xml,
col_offset = 0,
row_offset = 0,
...
)
Examples
if (requireNamespace("rvg") && interactive()) {
## rvg example
require(rvg)
tmp <- tempfile(fileext = ".xml")
dml_xlsx(file = tmp)
plot(1,1)
dev.off()
wb <- wb_workbook()$
add_worksheet()$
add_drawing(xml = tmp)$
add_drawing(xml = tmp, dims = NULL)
}
#> Loading required namespace: rvg