Closed GoogleCodeExporter closed 8 years ago
Thanks for your message.
This is not so much a bug in the code as a lag of documentation.
The state string needs a newline at the start and at the end to work.
Either you enter hard returns in your string or you use '\n'.
Here is a minimal example which should work for you
myStateSettings <-'\n{"iconType":"LINE"}\n'
M <- gvisMotionChart(Fruits, "Fruit", "Year",
options=list(state=myStateSettings))
plot(M)
I have updated the help file of gvisMotionChart for the state argument and
added the
above code to the example section to highlight the need for the newlines.
You can review the changes here:
http://code.google.com/p/google-motion-charts-with-r/source/diff?spec=svn346&r=3
46&format=side&path=/trunk/man/gvisMotionChart.Rd&old_path=/trunk/man/gvisMotion
Chart.Rd&old=339
I hope this helps.
Markus
Original comment by markus.g...@googlemail.com
on 12 Nov 2012 at 7:50
Perfect, thanks a lot for the quick response! I'm loving the package, congrats!
Original comment by ltrab...@gmail.com
on 13 Nov 2012 at 7:33
Original issue reported on code.google.com by
ltrab...@gmail.com
on 12 Nov 2012 at 10:04