plot.board: plot the board

Description Usage Arguments Value Examples

View source: R/visualize.R

Description

plot the board

Usage

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

Arguments

x

board object

Value

ggplot of the board with squares 0 = black, 1 = white, 2 = blue

Examples

1
plot.board(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))

edenhu11/percolate documentation built on Nov. 4, 2019, 11:32 a.m.