Learn R Programming

Bernadette (version 1.1.6)

plot_contact_matrix: Contact matrix heatmap

Description

Contact matrix heatmap

Usage

plot_contact_matrix(x)

Value

A ggplot object that can be further customized using the

ggplot2 package.

Arguments

x

data.frame; a contact matrix. See contact_matrix.

Examples

Run this code
# Import the projected contact matrix for Greece:
conmat <- contact_matrix(country = "GRC")

plot_contact_matrix(conmat)

Run the code above in your browser using DataLab