plotB64: Plot byte64

View source: R/pkPlotB64.r

plotB64R Documentation

Plot byte64

Description

Plot image to temporary png and load as Byte64 data

Usage

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 = "\">"
)

Arguments

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

Value

string with byte64 data


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.