# NOT RUN {
# Generate dummy RasterLayer
r <- raster(nrows = 2, ncols = 2, xmn = 0, xmx = 360, ymn = -90, ymx = 90, vals = 30)
# Generate dummy RasterBrick
b <- raster::brick(lapply(1:(365 * 3),
function(i) raster::setValues(r,
runif(n = raster::ncell(r), min = 0, max = 100))))
# Get percentile maps
maps <- get_percentile_map(b, probs = c(0.50, 0.75, 0.90, 0.99))
# Use default palette
plot_percentile_map(maps)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab