rbokeh
rbokeh copied to clipboard
grid_plots not showing in a R markdown document
inside a Rmd document I dont see the output of the following code in knitted html document
idx <- split(1:150, iris$Species)
figs <- lapply(idx, function(x) {
figure(width = 300, height = 300) %>%
ly_points(Sepal.Length, Sepal.Width, data = iris[x,],
hover = list(Sepal.Length, Sepal.Width))
})
grid_plot(figs)
It works for me. Can you provide more information? My environment:
> sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.4 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rbokeh_0.4.2
loaded via a namespace (and not attached):
[1] Rcpp_0.12.4 knitr_1.12.3 magrittr_1.5 maps_3.1.0
[5] munsell_0.4.3 lattice_0.20-33 colorspace_1.2-6 R6_2.1.2
[9] stringr_1.0.0 httr_1.1.0 plyr_1.8.3 dplyr_0.4.3
[13] tools_3.2.4 parallel_3.2.4 grid_3.2.4 gtable_0.2.0
[17] DBI_0.3.1 gistr_0.3.6 htmltools_0.3.5 yaml_2.1.13
[21] lazyeval_0.1.10 digest_0.6.9 assertthat_0.1 pryr_0.1.2
[25] ggplot2_2.1.0 codetools_0.2-14 htmlwidgets_0.6 rsconnect_0.4.2.1
[29] rmarkdown_0.9.5 stringi_1.0-1 scales_0.4.0 jsonlite_0.9.19
[33] hexbin_1.27.1