Hi, I would like to draw arrows in a classic 2D plot. Which package should I use? is there R base functions that do job? On google, I could not find any useful discussion about this topic, except a link to the function 'grid.arrows' of the grid package. My problem is I would like to draw arrows at the edge of circles drawn by the 'symbols' function. Maybe there is already a dedicated function for this? Any help is appreciated. Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]]
On 5/15/2009 12:43 PM, christophe dutang wrote:> Hi, > > I would like to draw arrows in a classic 2D plot. Which package should I > use? is there R base functions that do job? > > On google, I could not find any useful discussion about this topic, except a > link to the function 'grid.arrows' of the grid package. > > My problem is I would like to draw arrows at the edge of circles drawn by > the 'symbols' function. Maybe there is already a dedicated function for > this? > > Any help is appreciated.See ?arrows. Duncan Murdoch
Duncan mentioned the arrows function, which may do everything you want. But, also look at the my.symbols function in the TeachingDemos package for another way to draw arrows, or to draw your circles and arrows in 1 step. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of christophe dutang > Sent: Friday, May 15, 2009 10:44 AM > To: r-help at r-project.org > Subject: [R] drawing arrows > > Hi, > > I would like to draw arrows in a classic 2D plot. Which package should > I > use? is there R base functions that do job? > > On google, I could not find any useful discussion about this topic, > except a > link to the function 'grid.arrows' of the grid package. > > My problem is I would like to draw arrows at the edge of circles drawn > by > the 'symbols' function. Maybe there is already a dedicated function for > this? > > Any help is appreciated. > > Christophe > > > > -- > Christophe DUTANG > Ph. D. student at ISFA > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > 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.
christophe dutang wrote:> Hi, > > I would like to draw arrows in a classic 2D plot. Which package should I > use? is there R base functions that do job? > > On google, I could not find any useful discussion about this topic, except a > link to the function 'grid.arrows' of the grid package. > > My problem is I would like to draw arrows at the edge of circles drawn by > the 'symbols' function. Maybe there is already a dedicated function for > this? > > Any help is appreciated. > > Christophe > > > >Hi Christophe, If you are trying to do what I think you are trying to do, consider drawing the arrow first, with the starting point at the center of the circle, then draw the circle with a fill color the same as the background. This should give you a circle with a nice radial arrow emerging from the edge. Jim