gvisMotionChart is not working in R markdown file -
I need to embed gvisMotionChart in an R. markdown file and find an example that is really helpful. However, when I press the "Run Code" button I keep getting this error:
Can anyone locate the solution?
Thanks in advance.
The GoogleVis package for interactive plot creates javascript which is embedded in an HTML document to run on a webpage. To be done you will not be able to work it for that reason in the console or roostdo. The only way to find out is to make sure that it's working, it's knit on HTML, and then publish it on Rpubs (or anywhere else online). This will work after you are online, depending on your browser settings, you may be able to work locally by opening HTML, but the browser often blocks the embedded plot when opened locally.
Without looking at your actual code, I can not
Edit: I thought I would add that several months ago I created a markdown file that was in R for a class Interactive plot explains You can find it here:
If you scroll to the very end, you will see an example that I used gvisMotionChart. You have to make sure that the location you are printing graph in is in your part, and the result is asis:
`` `print the result (P, '' Chart '') `` `
Comments
Post a Comment