Learn R Programming

darts (version 1.0)

drawHeatmap: Heatmap of Expected Scores

Description

Draws a heatmap of the expected score as the aiming location varies across the dartboard, as a new plot.

Usage

drawHeatmap(e, col = heat.colors(30))

Arguments

e
A matrix of the expected scores, created by the function simpleExpScores or generalExpScores.
col
The colors to use for the heatmap.

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
drawHeatmap(e)

Run the code above in your browser using DataLab