Heatmap plot of ARGO coefficients applied on CDC's ILI data
heatmap_argo(argo_coef, lim = 0.1, na.grey = TRUE, scale = 1)
argo_coef
: The coefficient matrixlim
: the limit to truncate for large coefficients for better presentationna.grey
: whether to plot grey for NA valuesscale
: margin scalea graph on the default plot window
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()
Useful links