encodeGraphic: Encode graphic for html base 64

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Encode graphic for html base 64

Usage

1
encodeGraphic(g, height = 480, aspectRatio = 4/3)

Arguments

g

is an image

height

is the height in px of the image

aspectRatio

is the aspect ratio of the image as a fraction

Value

An encode version of g

Examples

1
encodeGraphic("my_test_plot.png", 480, 4/3)

andrew-a-hale/initmediaRUtils documentation built on Aug. 25, 2020, 2:51 p.m.