Displaying 1 result from an estimated 1 matches for "shot_data".
Did you mean:
shoe_data
2009 Jun 09
1
scatterplot (car) legend modification
...re
golf shots end up by club.
x (dispersion), y (distance), group (Club)
thanks, sam
## usage: Rscript shotScatter.R infile outfile level1 level2 minX maxX
minY maxY
## load the library
library(car)
## get the args
args = commandArgs(TRUE);
## get the data format is: x, y, group
Shot_Data <- read.table(args[1],
sep = ",",
header=T)
## setup the pdf file name
pdf(file = args[2])
## do the plot
scatterplot(y ~ x | Club, data=Shot_Data,
ellipse = TRUE,
levels = c(as.numeric(args[3]), as...