Learn R Programming

handwriter (version 3.2.4)

plot_writer_profiles: Plot Writer Profiles

Description

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

Usage

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

Value

A line plot

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.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab