My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 31: GoogleVis in R: Motion chart not loading in the browser. Getting blank browser.
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by ericki...@gmail.com, Jan 11, 2014
What steps will reproduce the problem?
1. Used built-in R dataset 'ChickWeight'
2. Installed RJSONIO and googleVis packages.
3. ChickWeight1<-ChickWeight[1:24,] //reduced the number of rows
4. visualization1<-gvisMotionChart(ChickWeight1,idvar='weight',timevar='Time')
5. Got a Warning Message.  Not sure if warning message is related.    

Warning message:
In if (class(x[[.x]]) == "Date") as.character(x[[.x]]) else x[[.x]] :
  the condition has length > 1 and only the first element will be used

6. plot(visualization1)

I expected a motion chart, but I just got a blank browser.  I also tried converting the 'Time' column from a numeric to date class, but no luck.    


What version of the product are you using? On what operating system?
3.0.2, Mac OS X version 10.6.8.  I also ran the the same code on my work Windows laptop, but no luck.

Please provide any additional information below.


Feb 18, 2014
Project Member #1 markus.g...@googlemail.com
I think you run into this problem as you data set doesn't make much sense. For each id (you use weight here) there is only one time point.
Feb 18, 2014
Project Member #2 markus.g...@googlemail.com
Try instead: 
plot(gvisMotionChart(ChickWeight,idvar='Chick',timevar='Time'))

Powered by Google Project Hosting