Learn R Programming

EpiModel (version 0.25)

plotComp: Plot Compartment Diagram

Description

This function plots the compartment diagram for standard models included in EpiModel

Usage

plotComp(type)

Arguments

type
Type of deterministic model to plot.

Details

Current options only are:
  • 'SIR'simple SIR models
  • 'SIRvd'SIR models with vital dynamics

See Also

epiDCM

Examples

Run this code
plotComp(type='SIR')
plotComp(type='SIRvd')

Run the code above in your browser using DataLab