save_base64: Save ggplot into base64

View source: R/images.R

save_base64R Documentation

Save ggplot into base64

Description

Save ggplot into base64

Usage

save_base64(plot, width = NULL, height = NULL, dpi = NULL, ...)

Arguments

plot

object for ggplot2 or a function for plot

width

image width

height

image height

dpi

image resolution

...

Other arguments for plot function

Value

character string for base64 image

Examples

## Not run: 
library(ggplot2)
p <- cars |>
    ggplot() +
    geom_point(aes(speed, dist))
p |> save_base64()

## End(Not run)

rtiddlywiki documentation built on Nov. 5, 2025, 7:32 p.m.