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())

Example output

sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
There are NA values in raster_dem. Assuming they are min(raster_dem[], na.rm = TRUE) for shading.
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
There were 16 warnings (use warnings() to see them)

geoviz documentation built on March 26, 2020, 9:15 p.m.