drawAimSpot: Optimal Aiming Spot

Description Usage Arguments Author(s) Examples

View source: R/maxscore.R

Description

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

Usage

1
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.

Author(s)

Ryan Tibshirani

Examples

1
2
3
4
5
6
7
8
# 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)

Example output

Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf

darts documentation built on May 2, 2019, 8:22 a.m.