[R] pie chart in lattice - trellis class

Christos Hatzis christos at nuverabio.com
Mon May 28 17:53:51 CEST 2007


In case you haven't seen this, there is an example in Paul Murrell's book
that plots temperatures on a map using 'thermometer' charts.  I would
imagine it should be relatively straight forward to combine the floating.pie
function with Paul's grid-base code (but I have not tried it myself).

http://www.stat.auckland.ac.nz/~paul/RGraphics/chapter7.html

See Figure 7.18 and code

-Christos

Christos Hatzis, Ph.D.
Nuvera Biosciences, Inc.
400 West Cummings Park
Suite 5350
Woburn, MA 01801
Tel: 781-938-3830
www.nuverabio.com
 



> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ben Bolker
> Sent: Monday, May 28, 2007 8:51 AM
> To: r-help at stat.math.ethz.ch
> Subject: Re: [R] pie chart in lattice - trellis class
> 
> P
> > 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
>



More information about the R-help mailing list