Sorry for that. Yes my question was whether or not and how is it possible to
fill a circle of yellow stripes in R? Is it something that I have to precise in
the color argument?
Thanks, best
Envoy? depuis mon appareil Samsung
-------- Message d'origine --------
De : Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
Date : 14/06/2017 18:46 (GMT+01:00)
? : r-help at r-project.org, jean-philippe <jeanphilippe.fontaine at
gssi.infn.it>, r-help at R-project.org
Objet : Re: [R] draw stripes in a circle in R
I don't see a question. If your question is whether R supports pattern
fills, AFAIK it does not. If that is not your question, ask one.
--
Sent from my phone. Please excuse my brevity.
On June 14, 2017 7:57:41 AM PDT, jean-philippe <jeanphilippe.fontaine at
gssi.infn.it> wrote:>dear R users,
>
>I would like to fill a circle with yellow stripes instead of a uniform
>yellow color. To draw the circle I used the following command after
>having loaded the (very nice !) plotrix library :
>
>library(plotrix)
>pdf("MWE.pdf",width=8, height=8)
>plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5))
>par(new=T)
>plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5))
>par(new=T)
>polygon(c(seq(-12.5,-8.7,length.out=100),
>rev(seq(-12.5,-8.7,length.out=100))), c(seq(-11.3,-8.3,length.out=100),
>
>rev(seq(-11.7,-8.7,length.out=100))),
>???????? col = alpha("red",0.4), border = NA)
>par(new=T)
>draw.circle(-12.85,-10.9,0.85,nv=1000,border=NULL,col="yellow",lty=1,lwd=1)
>dev.off()
>
>It looks a bit ugly since they are not real data, but it is the
>simplest
>MWE example that I found.
>
>
>Thanks, best
>
>
>Jean-Philippe
[[alternative HTML version deleted]]