plot.nonogram: plot.nonogram

View source: R/plot.nonogram.R

plot.nonogramR Documentation

plot.nonogram

Description

Method for plotting solved and unsolved nonograms using the ggplot2 and patchwork packages.

Usage

## S3 method for class 'nonogram'
plot(nonogram, with_solution = TRUE)

Arguments

nonogram

An object of class nonogram.

with_solution

with_solution TRUE (default) or FALSE. Whether the plot should contain the nonogram solution.

Details

If with_solution = FALSE, the function will plot an empty nonogram with the row and column patterns indicated. If with_solution = TRUE and the nonogram does not have a solution, the function will throw an error.

Value

An object of classes patchwork, gg, and ggplot.


hrj21/nonogram documentation built on April 6, 2024, 1:14 a.m.