drybrush: Simulates a dry brushing effect. Differs from elevation_transparency() in that colour is applied based on local altitude peaks, not across the whole raster
Description
Simulates a dry brushing effect. Differs from elevation_transparency() in that colour is applied based on local altitude peaks, not across the whole raster
Usage
drybrush(
raster_dem,
aggregation_factor = 10,
max_colour_altitude = 30,
opacity = 0.5,
elevation_palette = c("#3f3f3f", "#ffa500")
)
Arguments
aggregation_factor
grid size to determine local altitude peaks
max_colour_altitude
Altitude below which colours will be graduated across elevation_palette
opacity
overall opacity of the returned image
elevation_palette
Colour scheme c(colour_for_low_altitude, colour_for_high_altitude)
Value
An image with a drybrushed colour effect, highlighting local peaks
Examples
Run this code# NOT RUN {
overlay_image <- drybrush(example_raster())
# }
Run the code above in your browser using DataLab