How to draw clock in R ?
On 08/09/2012 08:58 PM, Manish Gupta wrote:
Great! It works fine for me. But i have one query. In my clock i have only 10 points so i am using as follows. pie(c(25,20,15,10,10,30)) floating.pie(0,0,c(25,20,15,10,10,30)) pie.labels(0,0,seq(0,19*pi/10,by=pi/5),c(3,2,1,0,9,8,7,6,5,4)*10,radius=1.1,border=NA) But format is not correct. I tried a lot but 0 always comes in beyond center.
Hi Manish, As the circumferential positions start at the right side, you will have to arrange your angles something like this: # untested pie.labels(0,0,seq(pi/10,19*pi/10,by=pi/5), c(2,1,0,9,8,7,6,5,4,3)*10,radius=1.1,border=NA) Jim