As I understand ggvis runs on top of shiny. But I can't figure out how to export all the files needed for running a single ggvis chart on a webserver without R/shiny.
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
That won't be possible for interactive plots since "every interactive ggvis plot must be connected to a running R session" (via ggivs basics). However, it is possible with ones that don't require reactive values.
CAVEAT ggvis is still rly new, so YMMV with 0.2.x for the following+.
I gave the various ggvis/knitr print functions a quick try but didn't manage to generate the whole document (i.e with the necessary libraries). If you do invoke a standard, non-interactive ggvis with something like:
and do a "view in browser", you'll see that the directory it creates has a main HTML file and a
libs
directory. You'll need all those javascript libraries in your site and then an outer template like:You can get the ggvis plot HTML via:
and then just insert it in the
body
tag.If you poke around a bit more at the ggvis source at github, you might be able to figure out how to use
view_static
(from ggvis) to get it to this automatically. I'm also pretty sure that there's a way to knit from an rmarkdown file directly to html, but I'm kinda staying clear of ggvis until at least 0.4/0.5 for pseudo-production vis.