SaveAllLetterPlots {handwriter} | R 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 |
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
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)
[Package handwriter version 3.1.1 Index]