[R-sig-Geo] plotting Football field ball pattern data
dray at biomserv.univ-lyon1.fr
Fri Jan 30 09:37:23 CET 2009
There are also some functions in the adehabitat package to
plot/manage/analyze trajectories. You can have a look at the following
Roger Bivand wrote:
> On Fri, 30 Jan 2009, srinivasa raghavan wrote:
>> Hi r-sig-geo team,
>> I am a new user of R 2.8.1 in windows 2003. I have a data set of
>> ball pattern data. The data is for multiple matches. The variables are :
>> match: The code number of the match.
>> period: First half or second half denotted by 1 or 2.
>> pitchX: The x co-ordinate of the field.
>> pitchy: The y-co-ordinate of the field.
>> seconds: The time point.
>> I am interested to draw the football graph/diagram and then plot the
> What is a "football graph/diagram"? Is it a line joining the (x,y) in
> time sequence? Simplifying by choosing one period in one match:
> o <- order(seconds)
> plot(pitchX[o], pitchY[o], type="l", asp=1)
> should do that, but I don't know whether this is what you need? If you
> need more detail on the trajectory, see the trip package (which is for
> animal tracking data, not dissimilar in principle).
>> Can any one let me know the right functions/packages which can help
>> me in
>> this regard.
>> thanks in advance.
>> warm regards,
>> statistical analyst.
>> [[alternative HTML version deleted]]
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
Stéphane DRAY (dray at biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
Tel: 33 4 72 43 27 57 Fax: 33 4 72 43 13 88
More information about the R-sig-Geo