Forum Discussion

mkins's avatar
mkins
Icon for Helper I rankHelper I
2 years ago

Connect 2 related markers on scatter plot

Hello,

 

I am analysising a football/ soccer game where I record where the ball is kicked from and where it is kicked to. As a result I record 2 x XY cooardinates, for each event (kick of the ball). These are then displayed in a scatter plot with a football pitch image set as the background.

 

Is it possible to have these 2 XY coordinates connected to eachother with a line? This would allow me to see the trajectory of the ball.

 

Please see below for a sample of my data:

 

EventField PositionStart XYEnd XYStart XStart YEnd X End Y
Pass16;20;37;3816;2037;3816203738

Pass

20;24;27;4920;2427;4920242749
Pass14;84;55;8314;8455;8314845583
Pass62;28;31;8262;2831;8262283182

 

 

An example output of a single pass would look like:

 

TIA