plotLetter | 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()
.
plotLetter(
doc,
whichLetter,
showPaths = TRUE,
showCentroid = TRUE,
showSlope = TRUE,
showNodes = TRUE
)
doc |
A document processed with |
whichLetter |
Single value in 1:length(letterList) denoting which letter to plot. |
showPaths |
Whether the calculated paths on the letter should be shown with numbers. |
showCentroid |
Whether the centroid should be shown |
showSlope |
Whether the slope should be shown |
showNodes |
Whether the nodes should be shown |
Plot of single letter.
twoSent_document = list()
twoSent_document$image = twoSent
twoSent_document$thin = thinImage(twoSent_document$image)
twoSent_document$process = processHandwriting(twoSent_document$thin, dim(twoSent_document$image))
plotLetter(twoSent_document, 1)
plotLetter(twoSent_document, 4, showPaths = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.