plotB64: Plot byte64

Description Usage Arguments Value

View source: R/pkPlotB64.r

Description

Plot image to temporary png and load as Byte64 data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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 Nov. 14, 2020, 12:29 p.m.