[R] Piecharts in a graph

M. Shiham Adam msadam at mrc.gov.mv
Mon Jun 14 13:46:49 CEST 2004


Dear R-Community.

I am trying show pie charts on a graph. To be precise, I have series of
catch calues by species by geographic (5 deg by 5 deg) regions. I want
to draw circles (actually pie charts showing the proportion of the catch
in each area) so that I have a graph of catch by species by geographic
area!

I know there is the <  symbols(dat$lon,dat$lat,circles = dat$sp1,
add=TRUE) > but I need pie charts instead of the simple circle!

Here is some data

> dat
    lon lat sp1 sp2 sp3
1  20  50   2   6  10
2  20  55 370  20  23
3  20  60 380  40  23
4  20  65  60 100  87
5  25  50   0   0  98
 
Any help would be much appreciated

Shiham Adam




More information about the R-help mailing list