Search code examples
rgooglevis

Sharing Google Motion Charts


I created a google motion chart through R. When I execute the code, it pops up on a webpage but I can only see it on my computer and can't send it. Any ideas would be helpful.

I can't make it reproducible because it is confidential information but essentially this is what the code looks like:

library(googleVis)
M<-gvisMotionChart(df,idvar="Zone",timevar="Date")
plot(M)

So I want to be able to email/share the link but can't figure it out.

Any help would be great, thanks!


Solution

  • {r results='asis',echo=FALSE}
    require(googleVis)
    op<-options(gvis.plot.tag="chart")
    M=gvisMotionChart(df, idvar = "Zone", timevar = "Date")
    plot(M)