[R-sig-Geo] plotting Football field ball pattern data
Stéphane Dray
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
paper:
http://www.science-direct.com/science?_ob=ArticleURL&_udi=B7W63-4V28T4D-1&_user=10&_coverDate=12%2F02%2F2008&_rdoc=3&_fmt=high&_orig=browse&_srch=doc-info(%23toc%2328539%239999%23999999999%2399999%23FLA%23display%23Articles)&_cdi=28539&_sort=d&_docanchor=&view=c&_ct=5&_acct=C000050221&_version=1&_urlVersion=0&_userid=10&md5=398a2266e820dc3f827e9e4d76d4bc80
Cheers,
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
>> football
>> 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
>> above
>> data.
>
> 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).
>
> Roger
>
>>
>> Can any one let me know the right functions/packages which can help
>> me in
>> this regard.
>>
>> thanks in advance.
>>
>> warm regards,
>> srinivas
>> statistical analyst.
>>
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
--
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
http://biomserv.univ-lyon1.fr/~dray/
More information about the R-sig-Geo
mailing list