Re: [R] Circular plot - polar plot code questions

2023-04-25 Thread Bruce Miller
Thanks yo Tim and Jim for useful suggestions re: my query on circular plots. Rethinking my goal, it appears Jim's suggestion of alternative linear plots make more sense and likley more intuitive for reader. Bruce __ R-help@r-project.org mailing list

Re: [R] Circular plot - polar plot code questions

2023-04-24 Thread Jim Lemon
Hi Bruce, Reading your message, I get the idea that you want a radial.plot with arcs to indicate "at least one bat is in this state'.This can be done with an addition to the rp.type= argument. If you already have what you want in this format, it may not be worth programming it. However, if you want

Re: [R] Circular plot - polar plot code questions

2023-04-24 Thread Ebert,Timothy Aaron
1) If you do not need it do not plot it. However, also consider how others will use your content. Might it be a trivial piece of information for you, but a critical piece of information for someone trying to use your content. A meta analysis, or just wanting to try to relate your outcomes to the

Re: [R] Circular plot

2017-02-14 Thread David L Carlson
os=4) text(-.1, 5.5, "1500", pos=2) David C From: swaraj basu [mailto:projectb...@gmail.com] Sent: Monday, February 13, 2017 3:58 PM To: David L Carlson ; r-help@r-project.org Subject: Re: [R] Circular plot Thank you David, I could get the circle at 12 and clockwise however I believ

Re: [R] Circular plot

2017-02-13 Thread Jim Lemon
Hi Swaraj, As David pointed out, you can get the arcs without too much trouble: library(plotrix) mdf<-data.frame(score=c(-1,7,4,-7),start=c(0,0,600,800), finish=c(100,200,800,1250)) par(mar=c(4,4,1,1)) plot(0,type="n",xlim=c(-20,20),ylim=c(-20,20),xlab="",ylab="", xaxt="n",yaxt="n") axis(1,at=c(

Re: [R] Circular plot

2017-02-13 Thread swaraj basu
Thank you David, I could get the circle at 12 and clockwise however I believe my solution is not the optimal one, could you help me out with the best way to generate the circle clockwise at 12 and then convert the begin/stop to radians Here is what I tried par(mar=c(2,2,2,2),xpd=TRUE); plot(c(1,8

Re: [R] Circular plot

2017-02-13 Thread Bert Gunter
If you don't get a reply here: 1. Search! (try rseek.org as an R search engine). 2. Try the Bioconductor list. As this appears to be closer to their realm, they may have what you're looking for. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

Re: [R] Circular plot

2017-02-13 Thread David L Carlson
You can do this easily with the DrawCircle() function in package DescTools. It is easiest to use geometric coordinates (0 is at 3 o'clock and moves counterclockwise around the circle), but it could be converted to 12 o'clock and clockwise: library(DescTools) # Convert begin/stop to radians dat