error using googlevis

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

error using googlevis

Peterso
This post has NOT been accepted by the mailing list yet.
I am trying to create a motion graph using R and ran the following examples from
http://lamages.blogspot.com/2012_10_01_archive.html


library(googleVis)
op <- options(gvis.plot.tag = "chart")

## Add the mean
CityPopularity$Mean=mean(CityPopularity$Popularity)
CC <- gvisComboChart(CityPopularity, xvar='City',
          yvar=c('Mean', 'Popularity'),
          options=list(seriesType='bars',
                       width=450, height=300,
                       title='City Popularity',
                       series='{0: {type:"line"}}'))
plot(CC)

I would get the following error.

Error in ifelse(interactive(), getOption("browser"), "false") :
  replacement has length zero

I get the same error running different examples using gvisComboChart()

Any ideas?

Thanks Johnny