googleVis (version 0.6.0)

createGoogleGadget: Create a Google Gadget

Description

Create a Google Gadget based on a Google Visualisation Object

Usage

createGoogleGadget(gvis)

Arguments

gvis
an object of class 'gvis', e.g. output of a googleVis visualisation functions.

Value

createGoogleGadget returns a Google Gadget XML string.

References

For more information about Google Gadgets see: https://developers.google.com/gadgets/

See Also

See also as print.gvis, cat

Examples

Run this code
M <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
gdgt <- createGoogleGadget(M)
cat(gdgt)

Run the code above in your browser using DataLab