drybrush: Simulates a dry brushing effect. Differs from...

Description Usage Arguments Value Examples

View source: R/drybrush.R

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

1
2
3
4
5
6
7
drybrush(
  raster_dem,
  aggregation_factor = 10,
  max_colour_altitude = 30,
  opacity = 0.5,
  elevation_palette = c("#3f3f3f", "#ffa500")
)

Arguments

raster_dem

A raster

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

1
overlay_image <- drybrush(example_raster())

neilcharles/geoviz documentation built on May 6, 2020, 9:06 p.m.