plot.dynet_pshifts: Plot participation shift counts

View source: R/pshifts.R

plot.dynet_pshiftsR Documentation

Plot participation shift counts

Description

One horizontal bar per shift type, grouped and coloured by family. Families are distinguished by a direct axis grouping as well as by fill, so the figure does not rely on colour alone.

Usage

## S3 method for class 'dynet_pshifts'
plot(x, ...)

Arguments

x

A dynet_pshifts result.

...

Ignored.

Value

A ggplot object.

Examples

dn <- dynet(school_contacts)
shifts <- pshifts(dn)
plot(shifts)

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.