Skip to contents

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)