powered by
Simple buffer based on euclidean distance are created around all cells equal to one.
osc.buffer(input, width)
Matrix or Raster containing 1 indicating a cluster, no NA values are allowed
Width of the buffer in cells
Returns matrix or raster, depending on input, with 1 for cluster and -1 for surrounding buffer
# NOT RUN { data(landcover) landcover[landcover[]>1] <- 0 plot(osc.buffer(landcover, 4)) # }
Run the code above in your browser using DataLab