Including googleVis output into a blogger post
It seems that you cannot include Google Visualisation Charts into a blog post directly.
So, I tried to include the output of a googleVis function as a gadget, but also unsuccessful.
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="40%" frameborder="0" src="http://dl.dropbox.com/u/7586336/blogger/AndrewGeoMap.html">
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:
AndrewGeoMap <- gvisGeoMap(Andrew, locationvar='LatLong', numvar='Speed_kt',
Created by Pretty R at inside-R.org
To leave a comment
for the author, please follow the link and comment on his blog: mages' blog
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook