How can one go about using googleVis
charts with gWidgetsWWW2
? I have seen that it is possible to use googleVis
with Rook
(http://www.magesblog.com/2012/08/rook-rocks-example-with-googlevis.html and https://cran.r-project.org/web/packages/googleVis/vignettes/googleVis.pdf) but I have not found any example of using googleVis
with gWidgetsWWW2
. My initial try:
require(gWidgetsWWW2)
require(googleVis)
w <- gwindow("hello")
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
g <- ggroup(cont=w, horizontal=FALSE)
M <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
ghtml(M$html, cont = g) # Trying html only
I end up seeing the following when I gwidgetsWWW2::load_app()
:
I've tried decomposing the html into its header, chart and footer also but this didn't work either:
# ghtml(M$html$header, cont = g) # Trying header only
# ghtml(M$html$chart, cont = g) # Trying chart
# ghtml(M$html$footer, cont = g) # Trying footer only
Any suggestions are greatly appreciated. Also, if there isn't a gWidget
that will directly allow the use of googleVis
charts, is it possible to integrate Rook
code (e.g. the code given at http://www.magesblog.com/2012/08/rook-rocks-example-with-googlevis.html) with the gWidgetWWW2
code? If so, how can I go about doing this?
Thank you very much.