#Example with random data
PlotMatrix(var = matrix(rnorm(n = 120, mean = 0.3), 10, 12),
cols = c('white','#fef0d9','#fdd49e','#fdbb84','#fc8d59',
'#e34a33','#b30000', '#7f0000'),
brks = c(-1, 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1),
toptitle = "Mean Absolute Error",
xtitle = "Forecast time (month)", ytitle = "Start date",
xlabels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec"))
Run the code above in your browser using DataLab