plot_move | R Documentation |
Plot game move
plot_move(
game,
file = NULL,
move = NULL,
annotate = TRUE,
...,
.f = piecepackr::grid.piece,
cfg = NULL,
envir = NULL,
width = NULL,
height = NULL,
ppi = 72,
bg = "white",
new_device = TRUE,
annotation_scale = NULL
)
game |
A list containing a parsed ppn game (as parsed by |
file |
Filename to save animation unless |
move |
Which move to plot game state (after the move, will use |
annotate |
If |
... |
Passed to |
.f |
Low level graphics function to use e.g. |
cfg |
A piecepackr configuration list |
envir |
Environment (or named list) of piecepackr configuration lists |
width |
Width of animation (in inches). Inferred by default. |
height |
Height of animation (in inches). Inferred by default. |
ppi |
Resolution of animation in pixels per inch. By default set so image max 600 pixels wide or tall. |
bg |
Background color ( |
new_device |
If |
annotation_scale |
Multiplicative factor that scales (stretches) any annotation coordinates.
By default uses |
An invisible list of the dimensions of the image, as a side effect saves a graphic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.