rbokeh2html | R Documentation |
Get the HTML content required to embed a Bokeh figure
rbokeh2html(
fig,
file = tempfile(fileext = ".html"),
pretty = FALSE,
secure = TRUE
)
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? |
p <- figure() %>% ly_points(1:10)
rbokeh2html(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.