Get the HTML content required to embed a Bokeh figure

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

p <- figure() %>% ly_points(1:10) rbokeh2html(p)
#> html file written to: /var/folders/wf/xv5yf5kj6pn458pcbx_vgsyr0000gn/T//RtmpwnFj6S/file13dcc466e53c9.html