Plot epidemic forecasts produced by epifx
This work is made available under the BSD 2-Clause license (see
This package requires R 2.15 or newer, and the
The Cairo package is also
suggested for printing plots to disk (e.g., as PDF or PNG files).
library(epifxplot) # Identify an epifx output file. hdf5_file <- '...' # Plot the forecasts generated at each forecasting date. p1 <- plot_forecasts(hdf5_file, obs=TRUE) # Plot the peak timing predictions. p2 <- plot_peak_timing(hdf5_file, obs=TRUE)
Clone the repository,
cd into the root directory, and run:
This will install the package by running
R CMD INSTALL epifxplot.