Draws a target pattern - either from the name of a pre-specified target type or from a supplied list defining the target.
drawTarget(x, unit, dstTarget, conversion,
add = FALSE, cex = par('cex'))
the measurement unit that should be used in the plot. Possible values are 'cm', 'mm', 'm', 'in', 'ft', 'yd', 'deg', 'MOA', 'SMOA', 'rad', 'mrad', 'mil'
.
a numerical value with the distance to the target - used in MOA calculation. See getMOA
.
how to convert the measurement unit for distance to target to that of the (x,y)-coordinates - used in MOA calculation. Example 'm2cm'
. See getMOA
.
logical: add to existing plot or create new plot?
numerical value specifying the magnification factor for plotting the ring numbers.
Invisibly returns a list with (at least) the following components defining the target:
target name.
measurement unit for ring diameters and radii.
number of rings.
highest ring count for scoring.
diameter of ring number 10 (highest-valued ring).
diameter of sub-division of ring number 10 (Innenzehn). If target has no sub-division, equal to ringD10
.
width of the remaining rings number 9, 8, 7, ...
nRings
+1 colors of the rings - right half of the target, starting with the sub-division of ring number 10 and going outwards.
nRings
-1 colors of the ring numbers, starting with ring number 9 and going outwards.
nRings
+1 ring radii, including sub-division of ring number 10.
measurement unit for ringD10u
, ringD10iu
, ringWu
, ringRu
as defined by unit
.
diameter of ring number 10 converted to unit
.
diameter of sub-division of ring number 10 (Innenzehn) converted to unit
.
width of the remaining rings number 9, 8, 7, ... converted to unit
.
nRings
+1 ring radii, including sub-division of ring number 10, converted to unit
.
# NOT RUN {
# draw ISSF 300m target in inch
trgt <- drawTarget('ISSF_300m', unit='in')
# target definition
trgt
# }
Run the code above in your browser using DataLab