Learn R Programming

rbokeh (version 0.4.2)

rbokeh2html: Get the HTML content required to embed a Bokeh figure

Description

Get the HTML content required to embed a Bokeh figure

Usage

rbokeh2html(fig, file = tempfile(fileext = ".html"), pretty = FALSE, secure = TRUE)

Arguments

fig
figure
file
html file name to write the figure to
pretty
should the json model be pretty printed to the html file?
secure
should https be used for cdn links?

Examples

Run this code
p <- figure() %>% ly_points(1:10)
rbokeh2html(p)

Run the code above in your browser using DataLab