plotLetter {handwriter} | R Documentation |
Plot Letter
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()
.
Usage
plotLetter(
doc,
whichLetter,
showPaths = TRUE,
showCentroid = TRUE,
showSlope = TRUE,
showNodes = TRUE
)
Arguments
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 |
Value
Plot of single letter.
Examples
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)
[Package handwriter version 3.1.1 Index]