Plotting pie charts using plotKML
On Fri, Dec 21, 2012 at 3:53 PM, Paul Galpern <pgalpern at gmail.com> wrote:
Dear list, This question pertains to the very nice package, plotKML. Does anyone know of an efficient way to render pie charts on Google Earth using plotKML? Creating thousands of little pie images and using the SpatialPhotoOverlay class doesn't seem viable. The only other thing I can think of is rendering each segment of each pie (of which there may be thousands) as a SpatialPolygons object. But this, again, seems like a lot of work (and likely to produce a very large KML file).
These guys: http://blog.thematicmapping.org/2008/04/using-google-charts-with-kml.html call the google charts API to generate the pie charts. Sneaky. You don't have to include the images in the KML, they get generated by the API on the fly (I think). Anyway, pie charts are bad, mmmkay? Barry