gg_matrix: Plots a data.table of converted socialmixR objects with...

Description Usage Arguments

View source: R/ggplot_functions.R

Description

This function takes a data.table object converted from socialmixR contact matrix objects from the socialmixR package by study

Usage

1
gg_matrix(dt, breaks = c(0, 0.5, 1), age_lab = FALSE)

Arguments

dt

data.table object converted from socialmixR contact matrix objects

breaks

numeric vector passed to ggplot::scale_fill_gradientn breaks parameter

age_lab

character vector of age labels passed to ggplot::scale_x_discrete labels parameter


jarvisc1/CoMix documentation built on April 24, 2020, 2:06 a.m.