Re: [R] pie chart in lattice - trellis class

From: Ben Bolker <>
Date: Mon, 28 May 2007 12:50:33 +0000 (UTC)

> Yes indeed. Thats' likely what I am going to do. Anyway, to plot axes,
> labels of sophisticated graphs on maps may be interesting anyway. For
> instance, we are monitoring fox and hare populations in tens of game
> areas. Drawing observations (panel.xyplot) over time and representing
> the trend variations (panel.loess) at the very place on the map where
> the observations were done gives an absolutely interesting view where
> spatial relationships between trends can be visualized.
> Patrick

  There is a floating.pie in the plotrix package, and a hidden floating.pie.asp function in the ape package. I agree that grid objects would be a more elegant way to implement these ... (The standard argument is that "thermometers" or mini-barplots would be a better way to view this information, but I agree that pie charts seem familiar to people.) I have the feeling that I've seen pie-charts-on-maps somewhere ... searching the R Graphics Gallery for "pie" also produces the "hexbin pie" plot (which doesn't use grid either ...)

  Ben Bolker mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 May 2007 - 13:15:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 May 2007 - 17:31:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.