
这种图的名字叫什么,另外做这种图的数据的排列结构应该是怎样的?也就是说行是什么,列是什么?
网上有给出这样的代码,但是看不懂,本人不会用R,哪位大侠可以解释一下哪些位置是改成自己的文件或行列名字等等的?
如果有别的软件可实现,也恳请告知。谢谢!
#2D plot
spi.breaks <- c(-2.4,-2,-1.6,-1.3,-0.8,-0.5,0.5,0.8,1.3,1.6,2,2.4)
spi.cols <- colorRampPalette(c("darkred","red","yellow","white","green","blue","darkblue"),space="rgb")
spi <- matrix(unlist(spi.m),756,12) #convert list to matrix for plotting
spi[(spi==Inf)] <- 2.2 #necessary to remove Infs because ecdf is being used
#plot
filled.contour(dates,seq(1:12),spi,col=spi.cols(11),xlab="",ylab="time-scale (months)",cex.lab=1.7,font.axis=2,font.lab=2,levels=spi.breaks,key.title="SPI")
title(main="SPI",cex.main=2)