ululalbab / google-motion-charts-with-r

Automatically exported from code.google.com/p/google-motion-charts-with-r
0 stars 0 forks source link

gvisGeoMap only renders data partially #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Save attached data to R working directory.
2. Execute:

library(googleVis);
load('t3.Rdata')
t3.plot <- gvisGeoMap(t3, locationvar='LatLong', numvar='impression', 
hovervar='zipcode', options=list(height=500,width=800,region='US', 
dataMode='Markers'))
plot(t3.plot)

What is the expected output? What do you see instead?

Plot is missing some of the data -- for example, zipcode='98387' is missing 
from the plot.

What version of the product are you using? On what operating system?

platform       x86_64-apple-darwin9.8.0     
arch           x86_64                       
os             darwin9.8.0                  
system         x86_64, darwin9.8.0          
status                                      
major          2                            
minor          13.0                         
year           2011                         
month          04                           
day            13                           
svn rev        55427                        
language       R                            
version.string R version 2.13.0 (2011-04-13)

Please provide any additional information below.

Original issue reported on code.google.com by estherw...@gmail.com on 16 Mar 2012 at 11:15

Attachments:

GoogleCodeExporter commented 9 years ago
googleVis version installed is 0.2.14, the latest Repository Version

Original comment by estherw...@gmail.com on 16 Mar 2012 at 11:26

GoogleCodeExporter commented 9 years ago
Your data set has 622 rows. The documentation of geo map states that only the 
first 400 data points will be used, see 
http://code.google.com/apis/chart/interactive/docs/gallery/geomap.html#Data_Form
at. 

Hence, you won't see zipcode 98387, which is your last data point. 

Plot the last the couple of rows and it shows up again: 
 t3.plot <- gvisGeoMap(t3[600:622,], locationvar='LatLong', numvar='impression', hovervar='zipcode', options=list(height=500,width=800,region='US', dataMode='Markers'))

I believe the geo chart does not have the restriction on data points, but 
currently doesn't over all the function of the geo chart. Here is an example:

t3.plot <- gvisGeoChart(t3, 'LatLong', 'impression', 
options=list(height=500,width=800, region='US', displayMode='markers'))
plot(t3.plot)

Original comment by markus.g...@googlemail.com on 17 Mar 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Yea, I noticed the row limit but couldn't find the documentation you cited 
re:400 rows. Thank you very much!

Original comment by estherw...@gmail.com on 17 Mar 2012 at 6:44