plotB64 | R Documentation |
Plot image to temporary png and load as Byte64 data
plotB64(
pfun,
...,
width = 200,
height = 200,
res = 100,
prefix = "<img src=\"data:image/png;base64, ",
suffix = "\">"
)
pkB64(
pfun,
...,
width = 200,
height = 200,
res = 100,
prefix = "<img src=\"data:image/png;base64, ",
suffix = "\">"
)
pfun |
a function that produces a plot |
... |
other parameters passed to <code>pfun</code> |
width |
PNG width (px) |
height |
PNG width (px) |
res |
PNG nominal resolution (ppi) |
prefix |
prefix to apply to the byte64 string, useful to generate full HTML img src |
suffix |
suffix to apply to the byte64 string, useful to generate full HTML img src |
string with byte64 data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.