[R] angles

Jim Lemon jim at bitwrit.com.au
Sat Apr 3 10:24:03 CEST 2010

On 04/03/2010 03:13 AM, Tom_R wrote:
> Hi R users,
> I would like to construct a sort hybrid vector/scatter plot.
> My data is in the following format:  3-column x,y,z data-frame in which
> every row is a separate data-point.
> The x&  y columns are coordinates, and the z column contains orientation
> data (range 0-180 degrees, with East=0&  North=90).
> I need to set each x,y, point to have the alignment in z. Hence my 'vectors'
> would simply be lines with the mid-point at x,y and without arrow-heads.
> R's normal vector plot requires a pair of x,y coords for the start&  end of
> each vector, whereas I just have an orientation.
Hi Tom,
Have a look at vectorField in the plotrix package.


More information about the R-help mailing list