Description Usage Arguments Value Examples
View source: R/visualize.R View source: R/visualize.R
plot.board method; plots a "board" class object
plot.board method updated; includes a grid which if TRUE is represneted visually by gray dashed lines
1 2 3 4 5 |
x |
a "board" object (superclass - matrix, subclass - board) |
grid |
a boolean, to decide whether the plot should contain dashed grid lines or not |
x |
a "board" object (superclass - matrix, subclass - board) |
a tile plot containing squares that represent the elements of "board" (superclass matrix); black for 0s, white for 1s, and light blue for 2s
a tile plot containing squares that represent the elements of "board" (superclass matrix); black for 0s, white for 1s, and light blue for 2s; if grid = TRUE, adds dashed gray lines to geom_tile
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.