Learn R Programming

argo (version 3.0.2)

heatmap_argo: Heatmap plot of ARGO coefficients applied on CDC's ILI data

Description

Heatmap plot of ARGO coefficients applied on CDC's ILI data

Usage

heatmap_argo(argo_coef, lim = 0.1, na.grey = TRUE, scale = 1)

Value

a graph on the default plot window

Arguments

argo_coef

The coefficient matrix

lim

the limit to truncate for large coefficients for better presentation

na.grey

whether to plot grey for NA values

scale

margin scale

Examples

Run this code
cor_coef <- matrix(runif(100, -1, 1), ncol=10)
colnames(cor_coef) <- as.character(Sys.Date() - 10:1)
rownames(cor_coef) <- paste0("row", 1:10)
pdf(file.path(tempdir(), "heatmap_argo.pdf"), height=11,width=12)
heatmap_argo(cor_coef)
dev.off()

Run the code above in your browser using DataLab