accuracyPrecision: Plot targets and histograms for illustrating accuracy and...

Description Usage Arguments Value Examples

View source: R/sims-teaching.R

Description

Plot “targets” and histograms for illustrating accuracy and precision. The user can choose the number of points to sample.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
accuracyPrecision(
  n = 50,
  r = 4,
  pts.col = "red",
  pts.trans = 0.6,
  pts.cex = 1,
  mns.col = "blue",
  mns.pch = 3,
  mns.lwd = 2
)

Arguments

n

Number of random points to put on each target and histogram.

r

Number of rings (i.e., circles) on the target.

pts.col

String indicating color to use for plotting points on the target.

pts.trans

Value between 0 and 1 indicating the transparency to use for plotting points on the target. The inverse of this value indicates how many points must be overplotted before the full color is shown.

pts.cex

Character expansion amount for points on target.

mns.col

String indicating color to use for line marking the mean on the targets and the histograms.

mns.pch

Value indicating the plotting character to use for the mean on the targets.

mns.lwd

Value indicating the line width to use use for the mean on the histograms.

Value

None. A plot is produced.

Examples

1
2

droglenc/NCStats documentation built on June 5, 2021, 2:06 p.m.