Learn R Programming

darts (version 1.0)

drawAimSpot: Optimal Aiming Spot

Description

Draws the optimal aiming location, i.e. the spot with the highest expected score, on top of an existing plot.

Usage

drawAimSpot(e, col = "blue", pch = 19, ...)

Arguments

e
A matrix of the expected scores, created by the function simpleExpScores or generalExpScores.
col
The color of the dot.
pch
The plotting "character" for the dot.
...
More arguments for drawing the dot.

Examples

Run this code
# This will take a couple of seconds
e = simpleExpScores(s=0)

# This is what your heatmap would look like if you had perfect accuracy  
par(mfrow=c(1,2))
drawHeatmap(e)
drawBoard(new=TRUE)
drawAimSpot(e)

Run the code above in your browser using DataLab