Learn R Programming

shotGroups (version 0.1)

shotGroups-package: Analyze shot group data

Description

Analyze shot groups: functions to read in, plot, describe, and compare shot group data. This includes standard, but also nonparametric and robust methods statistical methods. Works with files exported by OnTarget PC and OnTarget TDS.

Arguments

Details

ll{ Package: shotGroups Type: Package Version: 0.1 Date: 2012-02-21 Depends: R (>= 2.11), boot, KernSmooth, modeltools (>= 0.2-9) Imports: coin, energy, graphics, grDevices, mvoutlier, robustbase, stats License: GPL (>= 2) } Use help(package='shotGroups') for a list of all functions. If you do not yet have data imported into R:
  • if you have original output files from OnTarget PC/TDS: read in data from multiple files withreadDataOT1(for OnTarget PC v1.10), or withreadDataOT2(for OnTarget PC v2.10 and OnTarget TDS v3.71)
  • if you have other tab-delimited text files: read in data from multiple files withreadDataMisc
  • if your data is saved in some other text file format, consultread.table
  • combine data from different files withcombineData
If you already have full OnTarget PC/TDS data imported into an R:
  • make sure the data frame has these variables:Group(afactor),Distance,Aim.XandAim.Ydefining point of aim,Point.X, andPoint.Ydefining the bullet holes
  • perform a comprehensive numerical as well as graphical analysis of a group's shape, location, and spread withanalyzeGroup
  • numerically and visually compare different groups in terms of their shape, location, and spread withcompareGroups. This function requires an additional factorSeriesthat identifies shot groups. OnTarget PC/TDS'Groupvariable identifies groups just within one file,Seriesis intended to number groups also across different original files. If you only have one original file, you can just copy variableGroupstoSeriesin your data frame.
If you have data in the form of a matrix of (x,y)-coordinates relative to the point of aim, you can analyze different aspects of a group separately:
  • get numerical and graphical shape information on the distribution (find outliers and assess normality of distribution) withgroupShape
  • get location measures for the distribution withgroupLocation
  • get spread measures and their graphical representations withgroupSpread

Examples

Run this code
library(shotGroups)
example(groupShape)
example(groupLocation)
example(groupSpread)
example(analyzeGroup)
example(compareGroups)

Run the code above in your browser using DataLab