[R-sig-Geo] Plotting pie charts using plotKML

Paul Galpern pgalpern at gmail.com
Sat Dec 22 00:16:11 CET 2012


Thanks Barry, Edzer.  These are helpful suggestions.

Barry--yes its too bad about the pie charts--this is how the data has 
been presented in the past, so we do what me must!

Sincerely,
Paul

On 21/12/2012 10:58 AM, Barry Rowlingson wrote:
> 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

-- 
Paul Galpern
Natural Resources Institute
70 Dysart Road
University of Manitoba
Winnipeg, Manitoba, Canada R3T 2M6
http://borealscape.ca



More information about the R-sig-Geo mailing list