powered by
Save ggplot into base64
save_base64(plot, width = NULL, height = NULL, dpi = NULL, ...)
character string for base64 image
object for ggplot2 or a function for plot
image width
image height
image resolution
Other arguments for plot function
if (FALSE) { library(ggplot2) p <- cars |> ggplot() + geom_point(aes(speed, dist)) p |> save_base64() }
Run the code above in your browser using DataLab