Description Usage Arguments Value Note Author(s) References See Also Examples
Create a Google Gadget based on a Google Visualisation Object
1 | createGoogleGadget(gvis)
|
gvis |
an object of class 'gvis', e.g. output of a googleVis visualisation functions. |
createGoogleGadget returns a Google Gadget XML string.
Google Gadgets can be embedded in various Google products, for example as part of a Google Code wiki page, Blogger or Google Sites. In all cases the XML gadget file has to be hosted online, e.g. using Google Docs.
In Blogger the gadgets can be embedded via the design tab, and in a Google Sites via the menu "Insert" -> "More gadgets ..." -> "Add gadget ULR".
In a Google Code wiki the gadget can be embedded via
<wiki:gadget url="http://example.com/gadget.xml" height="200" border="0" />
You find examples on the googleVis project site: http://code.google.com/p/google-motion-charts-with-r/wiki/GadgetExamples
Markus Gesmann
For more information about Google Gadgets see: https://developers.google.com/gadgets/
See also as print.gvis
, cat
1 2 3 | M <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
gdgt <- createGoogleGadget(M)
cat(gdgt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.