geom_path with arrows

7 views
Skip to first unread message

David Hajage

unread,
Feb 25, 2009, 4:37:07 AM2/25/09
to ggplot2
Hello ggplot2 useRs,

I would like to know if it is possible to draw a path (with geom_path), but with all segments replaced by arrows.

Thank you very much.

David

hadley wickham

unread,
Feb 25, 2009, 8:03:13 AM2/25/09
to David Hajage, ggplot2
Have you looked at the example in geom_segment? You can supply an
arrows argument in a similar way to geom_path if you can group the
data in the way that you want, otherwise you'll need to rearrange the
data and use geom_segment.

Hadley
--
http://had.co.nz/

David Hajage

unread,
Feb 25, 2009, 8:18:14 AM2/25/09
to hadley wickham, ggplot2
Sorry Hadley, I missed that... I was looking for a "linetype" argument or something like that.


Thank you very much.

David


On Wed, Feb 25, 2009 at 2:03 PM, hadley wickham <h.wi...@gmail.com> wrote:
geom_segment

Reply all
Reply to author
Forward
0 new messages