plot.board: plot.board

Description Usage Arguments Value Examples

View source: R/visualize.R

Description

plot.board

Usage

1
2
## S3 method for class 'board'
plot(boardobj)

Arguments

boardobj

a board

Value

plots the board as a side effect

Examples

1
2
3
4
5
6
7
8
board_example <- board(matrix(c(0,1,1,1,0,
0,1,1,0,1,
0,0,1,0,0,
0,0,0,2,2,
2,2,2,2,0), 5, 5))

^note the matrix will be the transpose of what you see here (due to byrow = F)
plot(board_example)

Achowdh1/percolate documentation built on Oct. 30, 2019, 4:09 a.m.