Learn R Programming

handwriter (version 3.2.4)

plotImage: Plot Image

Description

This function plots a basic black and white image.

Usage

plotImage(doc)

Value

ggplot plot

Arguments

doc

A document processed with processDocument() or a binary matrix (all entries are 0 or 1)

Examples

Run this code
csafe_document <- list()
csafe_document$image <- csafe
plotImage(csafe_document)

if (FALSE) {
document <- processDocument('path/to/image.png')
plotImage(document)
}

Run the code above in your browser using DataLab