quantile | R Documentation |
Compute quantiles for the cell values of a RasterLayer. If you want to compute quantiles for each cell across a number of layers, you can use calc(x, fun=quantile)
.
quantile(x, ...)
x |
Raster object |
... |
Additional arguments: |
ncells can be used to set the number of cells to be sampled, for very large raster datasets.
A vector of quantiles
density
, cellStats
r <- raster(ncol=100, nrow=100)
values(r) <- rnorm(ncell(r), 0, 50)
quantile(r)
quantile(r, probs = c(0.25, 0.75), type=7,names = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.