plot.sudoku: Plot a Sudoku Game

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Plot a Sudoku Game

Usage

1
2
3
4
5
6
7
8
## 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

1
2
set.seed(20191)
makeGame(4, gaps = 0) %>% plot(cex=1) -> sg

Example output



sudokuAlt documentation built on Dec. 16, 2019, 1:23 a.m.