# Step4. Calculateand plot the Moran’s I value for the variable
result<-moran.test(CRIME,col.listw)
print(result)
问题一:如何把调用 Moran I statistic standard deviate = 5.6761,并赋值给一个新变量?
# Step4. Calculateand plot the Moran’s I value for the variable
result<-moran.test(CRIME,col.listw)
print(result)
plot.map(CRIME,col.poly, main= paste ("CRIME",":Moran’sI =", result[1]))
问题二:如何改变图例中数据标签的小数位数?
曾经尝试使用round()函数,未成功,如下图所示:
谢谢!