search for: hit_y

Displaying 1 result from an estimated 1 matches for "hit_y".

Did you mean: hit_x
2007 Sep 07
3
Plotting lines to sets of points
..."n", bg="white") lines(c(125,150,125,100,125),c(-210,-180,-150,-180,-210), col=c("black")) I have also plotted different hit locations using commands such as the following: points(subset(framename$hit_x, framename$hit_traj=="line_drive"), subset(-framename$hit_y, framename$hit_traj=="line_drive"), pch=20, col=c("red")) My question: Is there any easy way to plot a line from the origin (home plate) to each point on the graph? Preferably the line would share the same color as the dot that denotes where the ball landed. I have tried search...