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
ncells=NULL, and additional arguments to the stats::quantile function, see
ncells can be used to set the number of cells to be sampled, for very large raster datasets.
A vector of quantiles