Obviously I think that this is too verbose for @gd047, but I put a kind of tutorial since it maybe helpful for other readers who want to use googleVis on their own website.
install googleVis from CRAN
install.packages('googleVis')
pay attention to the messages.
then, create gvis object:
library(googleVis)
M <- gvisMotionChart(Fruits, "Fruit", "Year")
you can find the contents of M by:
> M
and you can find the plot on your browser:
> plot(M)
then, what is necessary to generate the chart is M$html$chart:
> M$html$chart
[1] "<!-- MotionChart ... omitted... ">
</div>
"
save it to a file:
> cat(M$html$chart, file="tmp.html")
if you open the "tmp.html" as a file (i.e, address says files:///***/tmp.html), then security warning may occur. What you need is to access the html via http://.
So if you can edit any web page where <script> tag is available (e.g., blogger), you can use it by simply copy and paste the contents of tmp.html, like this:
http://takahashik.blogspot.com/2011/01/googlevis-example.html
here is the famous "iris" version of example:
http://takahashik.blogspot.com/2011/01/googlevis-example-for-data-iris_10.html
Otherwise, if you have a web server, you can use it by uploading the tmp.html on the server.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…