Displaying 8 results from an estimated 8 matches for "circle2".
Did you mean:
circle
2017 Jun 14
4
[FORGED] Re: draw stripes in a circle in R
...gt;
> I finally understood the question and it needs a hack to the draw.circle function in plotrix since the angle and density arguments don't get passed in:
>
> First get code for draw.circle:
>
> ------
>
> draw.circle # then copy to console and edit
>
> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
> density=NA, angle=45, lwd = 1 )
> {
> xylim <- par("usr")
> plotdim <- par("pin")
> ymult <- getYmult()
> angle.inc <- 2 *...
2017 Jun 15
1
draw stripes in a circle in R
...and some part of the code, why do you pass radius as a
vector in the function (if I understand well the purpose of the for
loop) ? Also what is ymult?
If I set the radius to the value 0.85 as I wanted (so as a scalar), I
don't see any difference in the result when I call this function
draw.circle2, the stripes are not drawn inside the circle. I don't know
if it is normal.
Thanks, best
Jean-Philippe
On 14/06/2017 19:29, David Winsemius wrote:
>> On Jun 14, 2017, at 10:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>>
>>
>>> On Jun 14, 2017...
2017 Jun 14
0
draw stripes in a circle in R
...aving loaded the (very nice !) plotrix library :
I finally understood the question and it needs a hack to the draw.circle function in plotrix since the angle and density arguments don't get passed in:
First get code for draw.circle:
------
draw.circle # then copy to console and edit
draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
density=NA, angle=45, lwd = 1 )
{
xylim <- par("usr")
plotdim <- par("pin")
ymult <- getYmult()
angle.inc <- 2 * pi/nv
angles <- seq(0, 2 *...
2017 Jun 14
3
draw stripes in a circle in R
> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>
> 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
2017 Jun 14
0
[FORGED] Re: draw stripes in a circle in R
...ibrary :
>> I finally understood the question and it needs a hack to the draw.circle function in plotrix since the angle and density arguments don't get passed in:
>> First get code for draw.circle:
>> ------
>> draw.circle # then copy to console and edit
>> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
>> density=NA, angle=45, lwd = 1 )
>> {
>> xylim <- par("usr")
>> plotdim <- par("pin")
>> ymult <- getYmult()
>> a...
2017 Jun 15
2
[FORGED] Re: draw stripes in a circle in R
...lly understood the question and it needs a hack to the
>draw.circle function in plotrix since the angle and density arguments
>don't get passed in:
>>> First get code for draw.circle:
>>> ------
>>> draw.circle # then copy to console and edit
>>> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL,
>col = NA, lty = 1,
>>> density=NA, angle=45, lwd = 1 )
>>> {
>>> xylim <- par("usr")
>>> plotdim <- par("pin")
>>> ymult <- g...
2017 Jun 14
1
[FORGED] Re: draw stripes in a circle in R
...gt;
> I finally understood the question and it needs a hack to the draw.circle function in plotrix since the angle and density arguments don't get passed in:
>
> First get code for draw.circle:
>
> ------
>
> draw.circle?? # then copy to console and edit
>
> draw.circle2? <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
>???????????????????????????? density=NA, angle=45,? lwd = 1 )
> {
>????? xylim <- par("usr")
>????? plotdim <- par("pin")
>????? ymult <- getYmult()
>????? angle.inc <- 2 *...
2017 Jun 15
0
[FORGED] Re: draw stripes in a circle in R
...n and it needs a hack to the
>> draw.circle function in plotrix since the angle and density arguments
>> don't get passed in:
>>>> First get code for draw.circle:
>>>> ------
>>>> draw.circle # then copy to console and edit
>>>> draw.circle2 <- function (x, y, radius, nv = 100, border = NULL,
>> col = NA, lty = 1,
>>>> density=NA, angle=45, lwd = 1 )
>>>> {
>>>> xylim <- par("usr")
>>>> plotdim <- par("pin")
>>>...