search for: line_dr

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

Did you mean: line_str
2007 Sep 07
3
Plotting lines to sets of points
...diamond: plot (0:250, -250:0, type="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 t...