Description Usage Arguments Details Value Examples
Visualise a FEN
1 2 3 4 5 6 7 8 9 10 11 12 |
fen |
a character vector FEN of length one (defaults to the opening position) |
perspective |
view board from white "w" or black "b" perspective (default = "w") |
palette |
A single character colour theme listed below or a length 2 vector of colours ordered dark, light (default = "brown")
|
piece_scale |
scaling factor for piece sizes (default = 0.825) |
show_coords |
logical - should the board coordinates be printed? (default = TRUE) |
show_fen |
logical - should the FEN be printed in the plot caption? (default = FALSE) |
news_spacing |
spacing of shading lines if |
news_thickness |
thickness of shading lines if |
border_col |
Chess board border colour (default = NA (no border)) |
border_size |
Chess board border size (default = 0.5) |
Chess piece SVG design file downloaded from https://commons.wikimedia.org/wiki/File:Chess_Pieces_Sprite.svg
jurgenwesterhof (adapted from work of Cburnett), CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0>, via Wikimedia Commons
A ggplot2 plot object
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.