drawTarget {shotGroups} | R Documentation |
Draw a target pattern
Description
Draws a target pattern - either from the name of a pre-specified target type or from a supplied list defining the target.
Usage
drawTarget(x, unit, dstTarget, conversion,
add = FALSE, cex = par('cex'))
Arguments
x |
either a character value with the name of a target in |
unit |
the measurement unit that should be used in the plot. Possible values are |
dstTarget |
a numerical value with the distance to the target - used in MOA calculation. See |
conversion |
how to convert the measurement unit for distance to target to that of the (x,y)-coordinates - used in MOA calculation. Example |
add |
logical: add to existing plot or create new plot? |
cex |
numerical value specifying the magnification factor for plotting the ring numbers. |
Value
Invisibly returns a list with (at least) the following components defining the target:
name |
target name. |
unitTarget |
measurement unit for ring diameters and radii. |
nRings |
number of rings. |
maxCount |
highest ring count for scoring. |
ringD10 |
diameter of ring number 10 (highest-valued ring). |
ringD10i |
diameter of sub-division of ring number 10 (Innenzehn). If target has no sub-division, equal to |
ringW |
width of the remaining rings number 9, 8, 7, ... |
cols |
|
colsTxt |
|
ringR |
|
unitConv |
measurement unit for |
ringD10u |
diameter of ring number 10 converted to |
ringD10iu |
diameter of sub-division of ring number 10 (Innenzehn) converted to |
ringWu |
width of the remaining rings number 9, 8, 7, ... converted to |
ringRu |
|
See Also
Examples
# draw ISSF 300m target in inch
trgt <- drawTarget('ISSF_300m', unit='in')
# target definition
trgt