mages / googleVis

Interface between R and the Google Chart Tools
https://mages.github.io/googleVis/
358 stars 156 forks source link

blank page with Fruit data using gvisMotionChart #78

Closed bkaniskan closed 5 years ago

bkaniskan commented 6 years ago

Practicing to learn googleVis and unfortunately I am getting blank page. When I used RStudio it is a separate tab not within viewer pane. In base R it is a blank page. I suspect that it might be some setting issues on my end but do not know. Any suggestions how I can fix it?

library(googleVis) M <- gvisMotionChart(data=Fruits, idvar="Fruit", timevar="Date", chartid="ILoveFruit") plot(M)

mages commented 6 years ago

The motion chart requires Flash to be installed on your computer. You can check this by visiting the CRAN page with googleVis examples: https://cran.r-project.org/web/packages/googleVis/vignettes/googleVis_examples.html Motion charts are at the bottom of the page.

On 13 Mar 2018, at 17:33, Burcu Kaniskan notifications@github.com wrote:

Practicing to learn googleVis and unfortunately I am getting blank page. When I used RStudio it is a separate tab not within viewer pane. In base R it is a blank page. I suspect that it might be some setting issues on my end but do not know. Any suggestions how I can fix it?

library(googleVis) M <- gvisMotionChart(data=Fruits, idvar="Fruit", timevar="Date", chartid="ILoveFruit") plot(M)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mages/googleVis/issues/78, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF-1eps_slJNS23aAj7DpTy8P7jLEUlks5teALMgaJpZM4SpImO.

vshekharrc commented 4 years ago

Allowing permissions to flash did not solve the problem to me. The page continues to be blank even after this. Any other suggestions to fix this issue, please?

vshekharrc commented 4 years ago

Allowing permissions to flash did not solve the problem to me. The page continues to be blank even after this. Any other suggestions to fix this issue, please?

Okay, I think I got the solution here. The problem was not with the flash settings for me. It was with the parameter , chartid, of the gvisMotionChart. The chartId should be a character string with no spaces in between as in the below line of code:

M = gvisMotionChart(Fruits, idvar = "Fruit", timevar = "Date", chartid = "I_lovemy_fruit")

plot(M)

and not like this:

M = gvisMotionChart(Fruits, idvar = "Fruit", timevar = "Date", chartid = "I love my fruit")

plot(M)

This resolved my issue!!. Hope this helps