print_model_json: Print the JSON of a Bokeh figure

Description Usage Arguments Examples

View source: R/output_json.R

Description

Print the JSON of a Bokeh figure

Usage

1
2
print_model_json(fig, prepare = TRUE, pretty = TRUE, file = "",
  pbcopy = FALSE)

Arguments

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 toJSON

file

parameter passed on to cat

pbcopy

logical - if on OSX, should the results be passed to the clipboard (TRUE) instead of printed to the screen (FALSE)?

Examples

1
2
3
4
5
6
## Not run: 
p <- figure() %>% ly_points(1:10) %>%
 tool_pan(dimensions = "height")
print_model_json(p)

## End(Not run)

rbokeh documentation built on May 29, 2017, 10:59 a.m.