[R] Using feather.plot to try and generate a stick plot of current velocity data (and having issues)

Jim Lemon jim at bitwrit.com.au
Wed Sep 15 11:17:26 CEST 2010


On 09/15/2010 01:29 PM, Hughes, Ed wrote:
> Hello All,
>
>
>
> I am attempting to use the feather.plot function from the plotrix
> package to graph current velocity data as I have speed and direction.  I
> let "r" be the first 10 rows of current speed data and "theta" be the
> first 10 rows of directional data in radians.  I had tried this with 10
> measurements, but keep getting the following error message:
>
>
>
>
>
>> feather.plot(r,theta,1:10,yref=0,use.arrows=FALSE, fp.type="m")
>
>
>
> Error in segments(xpos, yref, xpos + x, y, ...) : invalid third argument
>
>
>
> My goal was to trouble shoot this smaller data set and see if I could
> ramp up to few thousand entries to basically generate a stick plot of
> current flow data.  Curious if I was doing anything obviously wrong with
> my arguments or if I should be using an entirely different function.
>
Hi Eddie,
I think the problem is with the format of your data. I tried a whole 
bunch of variants of vectors, matrices and data frames and couldn't 
reproduce your error. Could you post a sample data set that causes this 
problem? Thanks.

Jim



More information about the R-help mailing list