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. Jim ______________________________________________ R-help@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.