Title: | A 'shiny' Application for Handwriting Analysis |
---|---|
Description: | Perform statistical writership analysis of scanned handwritten documents with a 'shiny' app for 'handwriter'. |
Authors: | Iowa State University of Science and Technology on behalf of its Center for Statistics and Applications in Forensic Evidence [aut, cph, fnd], Stephanie Reinders [aut, cre] |
Maintainer: | Stephanie Reinders <[email protected]> |
License: | GPL (>= 3) |
Version: | 2.0.0 |
Built: | 2024-11-25 15:14:19 UTC |
Source: | CRAN |
Lauch a 'shiny' application for 'handwriter'.
handwriterApp(...)
handwriterApp(...)
... |
Optional arguments passed to shiny::shinyApp |
No return value, called to launch 'shiny' app
A Shiny app
## Not run: handwriterApp() ## End(Not run)
## Not run: handwriterApp() ## End(Not run)
Create a line plot of cluster fill rates for one or more documents, where the cluster fill rates serve as writer profiles. Each cluster fill rates for each document are plotted as different colored lines.
plot_writer_profiles(rates)
plot_writer_profiles(rates)
rates |
A data frame of cluster fill rates created with
|
A line plot
plot_writer_profiles(rates)
plot_writer_profiles(rates)
A data frame of cluster fill rates for two handwritten documents: w0004_s01_pLND_r01.png and w0004_s01_pWOZ_r02.png. Both documents are from the CSAFE Handwriting Database.
rates
rates
A data frame
The file name of the document without the file extension.
The total number of graphs in the document.
The proportion of graphs in cluster 1
The proportion of graphs in cluster 2
The proportion of graphs in cluster 3
The proportion of graphs in cluster 4
The proportion of graphs in cluster 5
The proportion of graphs in cluster 6
The proportion of graphs in cluster 7
The proportion of graphs in cluster 8
The proportion of graphs in cluster 9
The proportion of graphs in cluster 10
The proportion of graphs in cluster 11
The proportion of graphs in cluster 12
The proportion of graphs in cluster 13
The proportion of graphs in cluster 14
The proportion of graphs in cluster 15
The proportion of graphs in cluster 16
The proportion of graphs in cluster 17
The proportion of graphs in cluster 18
The proportion of graphs in cluster 19
The proportion of graphs in cluster 20
The proportion of graphs in cluster 21
The proportion of graphs in cluster 22
The proportion of graphs in cluster 23
The proportion of graphs in cluster 24
The proportion of graphs in cluster 25
The proportion of graphs in cluster 26
The proportion of graphs in cluster 27
The proportion of graphs in cluster 28
The proportion of graphs in cluster 29
The proportion of graphs in cluster 30
The proportion of graphs in cluster 31
The proportion of graphs in cluster 32
The proportion of graphs in cluster 33
The proportion of graphs in cluster 34
The proportion of graphs in cluster 35
The proportion of graphs in cluster 36
The proportion of graphs in cluster 37
The proportion of graphs in cluster 38
The proportion of graphs in cluster 39
The proportion of graphs in cluster 40
'handwriter' splits handwriting in the documents into component shapes called graphs. The graphs are sorted into 40 clusters using the cluster template 'templateK40'. The rates data frame shows the proportion of graphs from each document assigned to each cluster. The rates estimate a writer profile for the writer of a document.
plot_writer_profiles(rates)
plot_writer_profiles(rates)
A cluster template created by 'handwriter' with K=40 clusters. This template was created from 100 handwriting samples from the CSAFE Handwriting Database. This template is suitable for casework.
templateK40
templateK40
A list containing the contents of the cluster template.
An integer for the random number generator use to select the starting cluster centers for the K-Means algorithm.
A vector of cluster assignments for each graph used to create the cluster template. The clusters are numbered sequentially 1, 2,...,K.
The final cluster centers produced by the K-Means algorithm.
The number of clusters in the template.
The number of training graphs to used to create the template.
A vector that lists the training document from which each graph originated.
A vector that lists the writer of each graph.
The maximum number of iterations for the K-means algorithm.
A vector of the number of graphs that changed clusters on each iteration of the K-means algorithm.
A vector of the outlier cutoff values calculated on each iteration of the K-means algorithm.
The reason the K-means algorithm terminated.
The within cluster distances on the final iteration of the K-means algorithm. More specifically, the distance between each graph and the center of the cluster to which it was assigned on each iteration. The output of 'handwriter::make_clustering_template' stores the within cluster distances on each iteration, but the previous iterations were removed here to reduce the file size.
A vector of the within-cluster sum of squares on each iteration of the K-means algorithm.
'handwriter' splits handwriting samples into component shapes called graphs. The graphs are sorted into 40 clusters with a K-Means algorithm. See 'handwriter' for more details.
# view number of clusters templateK40$K # view number of iterations templateK40$iters # view cluster centers templateK40$centers
# view number of clusters templateK40$K # view number of iterations templateK40$iters # view cluster centers templateK40$centers