img {base64} | R Documentation |
This creates html code to embed a png file into an html document.
img(file, Rd = FALSE, alt = "image")
file |
png file to translate into a data uri |
Rd |
if |
alt |
alternate text |
pngfile <- tempfile() png(pngfile, width = 600, height = 400) plot(1:100, rnorm(100), pch = 21, bg = "red", cex = 2 ) dev.off() img(pngfile, Rd = TRUE)