powered by
Print the JSON of a Bokeh figure
print_model_json(fig, prepare = TRUE, pretty = TRUE, file = "", pbcopy = FALSE)
figure to print
logical - should the figure be sent through preparations that need to be done prior to plotting (TRUE), or printed as-is (FALSE)
parameter passed on to toJSON
toJSON
parameter passed on to cat
cat
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) # }
Run the code above in your browser using DataLab