I have just started with R and now I am trying to plot the amount of months with information per year in each station by using matrixplot function as following:
a <- dwi(Monthly_data[,1:54], out.unit = "years", dates=1)
matrixplot(a, var.type ="Days", main="Number of months with info per year")
and I get the plot with the scale, on the color bar, from 2-12. enter image description here
I want to change the scale on the colorbar to 0-12. I tried with xlim and ylim but they both don't work on the colorbar. Please give me any suggestion. Thank you.