plotNodes: Plot Nodes

View source: R/PlotFunctions.R

plotNodesR Documentation

Plot Nodes

Description

This function returns a plot with the full image plotted in light gray and the skeleton printed in black, with red triangles over the vertices. Also called from plotPath, which is a more useful function, in general.

Usage

plotNodes(doc, plot_break_pts = FALSE, nodeSize = 3, nodeColor = "red")

Arguments

doc

A document processed with processHandwriting()

plot_break_pts

Logical value as to whether to plot nodes or break points. plot_break_pts=FALSE plots nodes and plot_break_pts=TRUE plots break point.

nodeSize

Size of triangles printed. 3 by default. Move down to 2 or 1 for small text images.

nodeColor

Which color the nodes should be

Value

Plot of full and thinned image with vertices overlaid.

Examples

csafe_document <- list()
csafe_document$image <- csafe
csafe_document$thin <- thinImage(csafe_document$image)
csafe_document$process <- processHandwriting(csafe_document$thin, dim(csafe_document$image))
plotNodes(csafe_document)
plotNodes(csafe_document, nodeSize=6, nodeColor="black")


CSAFE-ISU/handwriter documentation built on March 24, 2024, 6:23 p.m.