plot.ssir_epidemic {ATQ}R Documentation

Plot method for a single SSIR epidemic simulation

Description

This function creates plots for a single SSIR (Stochastic Susceptible-Infectious-Removed) epidemic simulation. It generates two plots: one for new infections and one for reported cases.

Usage

## S3 method for class 'ssir_epidemic'
plot(x, ...)

Arguments

x

An object of class "ssir_epidemic", typically the result of calling ssir() with rep = NULL or 1.

...

Additional arguments passed to the underlying plotting function (currently unused).

Value

A grid arrangement of two ggplot objects: new infections and reported cases.

See Also

plot_single_epidemic for the underlying plotting function

Examples

# Run a single simulation
result <- ssir(N = 10000, T = 300, alpha = 0.3, inf_period = 4, inf_init = 32,
report = 0.02, lag = 7)

# Plot the results
plot(result)

[Package ATQ version 0.2.2 Index]