[R] Draw Overlapping Circles with shaded tracks

Marc Girondot marc_grt at yahoo.fr
Sun Dec 31 14:40:49 CET 2017


Another solution:

library("HelpersMG") plot(0:10,type="n",axes=FALSE,xlab="",ylab="", 
asp=1) ellipse(center.x = 3, center.y = 5, radius.x = 5, radius.y = 5, 
lwd=10, col=NA, border=rgb(red = 1, green = 0, blue=0, alpha = 0.5)) 
ellipse(center.x = 8, center.y = 5, radius.x = 5, radius.y = 5, lwd=10, 
col=NA, border=rgb(red = 0, green = 1, blue=0, alpha = 0.5))


(Without the graphic example, it is difficult to know what tit was 
supposed to do !)

Marc

Le 31/12/2017 à 14:10, John Kane via R-help a écrit :
> That code nees the plotrix package:
> library(plotrix)
> pdf("circles.pdf")
> plot(0:10,type="n",axes=FALSE,xlab="",ylab="")
> draw.circle(4,5,radius=3,border="#ff0000aa",lwd=10)
> draw.circle(6,5,radius=3,border="#0000ffaa",lwd=10)
> dev.off()
>
>
>   
>
>      On Friday, December 29, 2017, 6:06:32 PM EST, Jim Lemon <drjimlemon at gmail.com> wrote:
>   
>   Hi Abou,
> Without an illustration it's hard to work out what you want. here is a
> simple example of two circles using semi-transparency. Is this any
> help?
>
> pdf("circles.pdf")
> plot(0:10,type="n",axes=FALSE,xlab="",ylab="")
> draw.circle(4,5,radius=3,border="#ff0000aa",lwd=10)
> draw.circle(6,5,radius=3,border="#0000ffaa",lwd=10)
> dev.off()
>
> Jim
>
> On Fri, Dec 29, 2017 at 9:45 PM, AbouEl-Makarim Aboueissa
> <abouelmakarim1962 at gmail.com> wrote:
>> Dear All:
>>
>>
>> I am wondering if there is a way in R to draw these two circles with shaded
>> tracks in both circles using R, and make both circles uncovered. I am
>> trying to make it in MS words, but I could not. Your help will be highly
>> appreciated.
>>
>>
>> In my previous post I added the image of the two circles, but the post
>> never published. I just thought to resent the post again without the image.
>>
>> with many thanks
>> abou
>> ______________________
>>
>>
>> *AbouEl-Makarim Aboueissa, PhD*
>>
>> *Professor of Statistics*
>>
>> *Department of Mathematics and Statistics*
>> *University of Southern Maine*
>>
>>          [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>    
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



	[[alternative HTML version deleted]]



More information about the R-help mailing list