plot_graphs {handwriter} | R Documentation |
Plot Graphs
Description
Use processDocument()
to split handwritting into component shapes called
graphs. plot_graphs()
creates a plot that displays the graphs. ggplot2::facet_wrap()
places each graph in its own facet, and ncol
sets the number of columns of facets.
Usage
plot_graphs(doc, ncol = NULL)
Arguments
doc |
A PNG image of handwriting processed with |
ncol |
Optionally, set the number of columns in the output plot. The default is |
Value
A plot of all graphs in the document
Examples
image_path <- system.file("extdata", "phrase_example.png", package = "handwriter")
doc <- processDocument(image_path)
plot_graphs(doc)
[Package handwriter version 3.2.4 Index]