[R] ploting pie charts centered at given points
JeffND
Zuofeng.Shang.5 at nd.edu
Wed Oct 12 06:15:23 CEST 2011
Hi to all,
Suppose we have a group of points on the plane,
at each point, we want to draw a pie chart centered at that point.
I have found that pie.labels() function might be useful. This function
allows us
to achieve my goal, but before using the function,
we have to use the function plot(), say, the following example code:
pieval<-c(2,4,6,8)
plot(1:5,type="n",axes=FALSE)
box()
bisect.angles<-floating.pie(3,3,pieval)
pie.labels(3,3,bisect.angles,c("two","four","six","eight"))
I am wondering why use "1:5" in plot?
Can I use "for" loop language to draw many pie charts
on a plane? For this case, using "1:5" may not work.
I also tried other numbers such like "1:10", "1:3",
all failed.
I stronglly appreciate your time and help!
Jeff
--
View this message in context: http://r.789695.n4.nabble.com/ploting-pie-charts-centered-at-given-points-tp3896771p3896771.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list