plot_writer_profiles {handwriter}R Documentation

Plot Writer Profiles

Description

Create a line plot of writer profiles for one or more documents.

Usage

plot_writer_profiles(profiles, color_by = "docname", ...)

Arguments

profiles

A data frame of writer profiles created with {get_writer_profiles}.

color_by

A column name. 'ggplot2' will always group by docname, but will use this column to assign colors.

...

Additional arguments passed to ggplot2::facet_wrap, such as facets, nrow, etc.

Value

A line plot

Examples


docs <- system.file(file.path("extdata"), package = "handwriter")
profiles <- get_writer_profiles(docs, measure = "counts")
plot_writer_profiles(profiles)

profiles <- get_writer_profiles(docs, measure = "rates")
plot_writer_profiles(profiles)



[Package handwriter version 3.2.4 Index]