Including googleVis output in a blogger post
So, I tried to include the output of a googleVis function as a gadget, but also unsuccessfully.
Although you can include gadgets into your site template, it doesn't seem to work with blog posts. So, here is the trick which works for me: the
The following geo map is included as
<iframe width="100%" height="400px" frameborder="0" src="http://dl.dropbox.com/u/7586336/blogger/AndrewGeoMap.html"> </iframe>
As you can see, the chart itself is actually displayed in a page hosted by Dropbox and only inserted into this post via the
For those of you, who would like to replicate the plot of Hurricane Andrew, here is the R code:
Created by Pretty R at inside-R.org
Correction (18 October 2011)I just figured out that we can actually embed a chart into a blogger post directly. You can literately copy and paste the code directly into the post. However, it doesn't seem to be displayed with MS Internet Explorer.
Anyhow, here is the example from above again:
print(AndrewGeoMap, "chart", file="~/Desktop/AndrewGeoMap.js")
Now I copied and pasted the content of that file below: