# NOT RUN {
library(raster)
b <- brick(system.file("external/rlogo.grd", package="raster"))
x <- b[[1]]
y <- b[[3]]
r.cor <- rasterCorrelation(x, y, s = 5, type = "spearman")
plot(r.cor)
# }
# NOT RUN {
rasterCorrelation
# }
Run the code above in your browser using DataLab