Set significant differences to NA
This function sets all values that are equal or less than 0.05 to NA. Applied to a raster that shows the p-values of a significance test, the function sets all statistically significant differences to NA at the 5 percent level.
intFun.grid.significance(x)
x |
A raster object |
A raster object
library(raster) # make some data data <- runif(100,0,1) data <- matrix(data, ncol=10) data <- raster::raster(data) # repeat raster stack 10 times data <- intFun.grid.significance(data) plot(data); text(data, digits=2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.