make_offsets | R Documentation |
Computes the (x, y) offset positions for drawing dots on dice faces.
make_offsets(n, width = 0.5, height = 0.5, pad = 0.1)
n |
Integer from 1 to 6, indicating the number of dots on the die face. |
width |
Total width of the die face (default: 0.5). |
height |
Total height of the die face (default: 0.5). |
pad |
Padding to apply around the dot grid (default: 0.1). |
A data.frame with key
, x
, and y
columns indicating dot positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.