Re: [R] to draw a smooth arc

2007-05-08 Thread Paulo Barata
Prof. Ripley, Maybe the fact that few R plot regions have a 1:1 aspect ratio is not a major problem here. One has to deal with the same issue when drawing a circle parametrically. Depending on the window size, a (cos(t),sin(t)) plot appears as an ellipse. To get a circle parametrically, one has

Re: [R] to draw a smooth arc

2007-05-08 Thread Prof Brian Ripley
On Tue, 8 May 2007, Paulo Barata wrote: Prof. Ripley, Maybe the fact that few R plot regions have a 1:1 aspect ratio is not a major problem here. One has to deal with the same issue when drawing a circle parametrically. Depending on the window size, a (cos(t),sin(t)) plot appears as an

Re: [R] to draw a smooth arc

2007-05-07 Thread Prof Brian Ripley
There is now an xspline() function in R-devel, with an example showing how to add arrows. I thought a bit more about a 'circular arc' function, but there really is a problem with that. Few R plot regions have a 1:1 aspect ratio including some that are intended to do so (see the rw-FAQ).

Re: [R] to draw a smooth arc

2007-05-02 Thread Jim Lemon
(Ted Harding) wrote: This thread prompts me to ask about something I've been pondering for a while, as to whether there's an implementation somewhere ticked away in the R resources. So far, people have been responding to the original query in terms of increasing the numbers of points, and

Re: [R] to draw a smooth arc

2007-05-01 Thread Jim Lemon
Paulo Barata wrote: Dear R-list members, I would like to draw a smooth arc. I can draw an arc parametrically, but this produces an arc too coarse, even allowing for different increments in sequence t in the example below. Function symbols (graphics) does produce a smooth circle, but it

Re: [R] to draw a smooth arc

2007-05-01 Thread Prof Brian Ripley
On Tue, 1 May 2007, Jim Lemon wrote: Paulo Barata wrote: Dear R-list members, I would like to draw a smooth arc. I can draw an arc parametrically, but this produces an arc too coarse, even allowing for different increments in sequence t in the example below. Function symbols (graphics)

Re: [R] to draw a smooth arc

2007-05-01 Thread Ted Harding
This thread prompts me to ask about something I've been pondering for a while, as to whether there's an implementation somewhere ticked away in the R resources. So far, people have been responding to the original query in terms of increasing the numbers of points, and joining these by lines.

Re: [R] to draw a smooth arc

2007-05-01 Thread Greg Snow
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 7:51 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] to draw a smooth arc This thread prompts me to ask about something I've been pondering for a while, as to whether there's

Re: [R] to draw a smooth arc

2007-05-01 Thread Greg Snow
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Barata Sent: Monday, April 30, 2007 8:17 PM To: r-help@stat.math.ethz.ch Subject: [R] to draw a smooth arc Dear R-list members, I would like to draw a smooth arc. I can draw an arc parametrically, but this produces an arc too coarse

Re: [R] to draw a smooth arc

2007-05-01 Thread Prof Brian Ripley
On Tue, 1 May 2007, Greg Snow wrote: Here is an approach that clips the circle you like from symbols down to an arc (this will work as long as the arc is less than half a circle, for arcs greater than half a circle, you could draw the whole circle then use this to draw an arc of the bacground

Re: [R] to draw a smooth arc

2007-05-01 Thread Paulo Barata
Dr. Snow and Prof. Ripley, Dr. Snow's suggestion, using clipplot (package TeachingDemos), is maybe a partial solution to the problem of drawing an arc of a circle (as long as the line width of the arc is not that large, as pointed out by Prof. Ripley). If the arc is symmetrical around a vertical

Re: [R] to draw a smooth arc

2007-05-01 Thread Paul Murrell
Hi Paulo Barata wrote: Dr. Snow and Prof. Ripley, Dr. Snow's suggestion, using clipplot (package TeachingDemos), is maybe a partial solution to the problem of drawing an arc of a circle (as long as the line width of the arc is not that large, as pointed out by Prof. Ripley). If the arc is

Re: [R] to draw a smooth arc

2007-05-01 Thread Paulo Barata
Dr. Murrell and all, One final suggestion: a future function arc() in package graphics, with centre-radius-angle parameterisation, could also include an option to draw arrows at either end of the arc, as one can find in function arrows(). Thank you. Paulo Barata

Re: [R] to draw a smooth arc

2007-05-01 Thread Paul Murrell
Hi Paulo Barata wrote: Dr. Murrell and all, One final suggestion: a future function arc() in package graphics, with centre-radius-angle parameterisation, could also include an option to draw arrows at either end of the arc, as one can find in function arrows(). ... and in grid.xspline()

[R] to draw a smooth arc

2007-04-30 Thread Paulo Barata
Dear R-list members, I would like to draw a smooth arc. I can draw an arc parametrically, but this produces an arc too coarse, even allowing for different increments in sequence t in the example below. Function symbols (graphics) does produce a smooth circle, but it cannot produce an arc.