| save_base64 | R Documentation |
Save ggplot into base64
save_base64(plot, width = NULL, height = NULL, dpi = NULL, ...)
plot |
object for ggplot2 or a function for plot |
width |
image width |
height |
image height |
dpi |
image resolution |
... |
Other arguments for plot function |
character string for base64 image
## Not run:
library(ggplot2)
p <- cars |>
ggplot() +
geom_point(aes(speed, dist))
p |> save_base64()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.