print_model_json | R Documentation |
Print the JSON of a Bokeh figure
print_model_json(fig, prepare = TRUE, pretty = TRUE, file = "", pbcopy = FALSE)
fig |
figure to print |
prepare |
logical - should the figure be sent through preparations that need to be done prior to plotting (TRUE), or printed as-is (FALSE) |
pretty |
parameter passed on to |
file |
parameter passed on to |
pbcopy |
logical - if on OSX, should the results be passed to the clipboard (TRUE) instead of printed to the screen (FALSE)? |
## Not run:
p <- figure() %>% ly_points(1:10) %>%
tool_pan(dimensions = "height")
print_model_json(p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.