SaveAllLetterPlots: Save All Letter Plots

View source: R/PlotFunctions.R

SaveAllLetterPlotsR Documentation

Save All Letter Plots

Description

This function returns a plot of a single graph extracted from a document. It uses the letterList parameter from the processHandwriting() or processDocument() function and accepts a single value as whichLetter. Dims requires the dimensions of the entire document, since this isn't contained in processHandwriting() or processDocument(). Requires the magick package.

Usage

SaveAllLetterPlots(letterList, filePaths, dims, bgTransparent = TRUE)

Arguments

letterList

Letter list from processHandwriting() or processDocument() function

filePaths

Folder path to save images to

dims

Dimensions of original document

bgTransparent

Logical determines if the image is transparent

Value

No return value.

See Also

image_transparent

image_write

image_read

Examples

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)
## Not run: 
withLetterImages = AddLetterImages(twoSent_processList$letterList, "path/to/save", dims)

## End(Not run)


handwriter documentation built on Oct. 13, 2023, 5:10 p.m.