Getting to the point – an alternative to the bezier arrow

The Physics of Finance 2013-05-22

Summary:

(This article was first published on G-Forge » R, and kindly contributed to R-bloggers) An alternative bezier arrow to the regular grid-bezier. Apart from a cool gradient it has the advantages of: exact width, exact start/end points and axis alignment. About two weeks ago I got frustrated with the bezierGrob function in the grid package. The lwd parameter is interpreted differently depending on device, the arrow at the end does not follow the line but is perpendicular (probably following the spline control), and the line parameter makes it difficult to control exactly where the line starts/ends. Thus I decided to make my own fancy line with an arrow at the end – at the time I thought: How hard can it be? In retrospect, I wish I never thought of the thing… This article is about the painful process of creating of an alternative to the bezierGrob. The end result Based upon this article I have created two functions for generating these arrows, you can find them in my Gmisc-package, the bezierArrowSmpl and bezierArrowSmplGradient functions. Both functions should be fully documented, although the second one with the gradient is still somewhat of a beta as there are more features that [...]

Link:

http://feedproxy.google.com/~r/RBloggers/~3/d8TytorwoCg/

From feeds:

Statistics and Visualization » R-bloggers

Tags:

Authors:

Max Gordon

Date tagged:

05/22/2013, 05:50

Date published:

05/21/2013, 16:36