View source: R/PlotFunctions.R
SaveAllLetterPlots | R Documentation |
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.
SaveAllLetterPlots(letterList, filePaths, dims, bgTransparent = TRUE)
letterList |
Letter list from |
filePaths |
Folder path to save images to |
dims |
Dimensions of original document |
bgTransparent |
Logical determines if the image is transparent |
No return value.
image_transparent
image_write
image_read
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.