plot.dynet_similarity: Draw time-bin similarity as a heatmap

View source: R/similarity.R

plot.dynet_similarityR Documentation

Draw time-bin similarity as a heatmap

Description

Draw time-bin similarity as a heatmap

Usage

## S3 method for class 'dynet_similarity'
plot(x, base_size = 12, ...)

Arguments

x

A result from similarity().

base_size

Base text size. Defaults to twelve.

...

Ignored.

Value

A ggplot object. Drawing happens when that object is printed, so the plot is the return value here rather than a side effect.

Examples

dn <- dynet(school_contacts)
bin_similarity <- similarity(dn, step = 5, window = 5)
plot(bin_similarity)

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