我正在尝试生成与我通过使用R对两个DEM进行差分生成的DEM相关的qqplot
。我过去生成了几个qqplot
,但这是我第一次尝试生成一个来自光栅。
当我尝试生成qqplot
时,我会收到警告和错误,我不确定其含义(见下文)。
如何在R中为我的栅格生成qqplot
图?
输入:
setwd("N:/x/y/data")
DEM1 <-raster("DEM1") ; DEM2<-raster("DEM2")
DEM_Diff= DEM2 - DEM1
qqplot(DEM_Diff, main="Q-Q Plot:DEM_Diff")
输出:
Warning message:
In any(<S4 object of class "RasterLayer">, na.rm = FALSE) :
Nothing to summarize if you provide a single RasterLayer; see cellStats
Error in x[order(x, na.last = na.last, decreasing = decreasing)] :
error in evaluating the argument 'i' in selecting a method for function '[':Error in !is.na(na.last) && any(nas) : invalid 'y' type in 'x && y'
答案 0 :(得分:0)