plotLine: plotLine

Description Usage Arguments Value Examples

View source: R/PlotFunctions.R

Description

This function returns a plot of a single line extracted from a document. It uses the letterList parameter from the processHandwriting function and accepts a single value as whichLetter. Dims requires the dimensions of the entire document, since this isn't contained in processHandwriting.

Usage

1
plotLine(letterList, whichLine, dims)

Arguments

letterList

Letter list from processHandwriting function

whichLine

Single value denoting which line to plot - checked if too big inside function.

dims

Dimensions of the original document

Value

Plot of single line.

Examples

1
2
3
4
5
6
7
twoSent_document = list()
twoSent_document$image = twoSent
twoSent_document$thin = thinImage(twoSent_document$image)
twoSent_processList = processHandwriting(twoSent_document$thin, dim(twoSent_document$image))

dims = dim(twoSent_document$image)
plotLine(twoSent_processList$letterList, 1, dims)

handwriter documentation built on Aug. 16, 2021, 5:07 p.m.