plot.sudoku {sudokuAlt} | R Documentation |
Plot a Sudoku Game
Description
Plot a Sudoku Game
Usage
## S3 method for class 'sudoku'
plot(
x,
...,
cex = 1.5 - (n - 3)/2,
colSolution = "grey",
colGame = "fire brick"
)
Arguments
x |
The sudoku game |
... |
additional arguments |
cex |
Character expansion factor |
colSolution |
colour to be used for the solution (if present) |
colGame |
colour to be used for the original game |
Details
Present a graphical display of a sudoku game and its solution if the game is solved
Value
The sudoku game x
, invisibly.
Author(s)
Bill Venables
Examples
set.seed(20191)
makeGame(4, gaps = 0) %>% plot(cex=1) -> sg
[Package sudokuAlt version 0.2-1 Index]