Description Usage Arguments Value Examples
View source: R/sims-teaching.R
Plot “targets” and histograms for illustrating accuracy and precision. The user can choose the number of points to sample.
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
)
|
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. |
None. A plot is produced.
1 2 | accuracyPrecision()
accuracyPrecision(100,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.