Skip to contents

Copied from https://github.com/mpio-be/windR

Usage

atl_alpha_along(x, head = 20, skew = -2)

Arguments

x

Vector along which alpha is created

head

Numeric parameter influencing the lenght of the head

skew

Numeric parameter influencing the skew of alpha

Value

Numeric verctor with different alpha values

Author

Mihai Valcu & Johannes Krietsch

Examples

library(ggplot2)
d <- data.frame(
  x = 1:100, y = 1:100,
  a = atl_alpha_along(1:100, head = 20, skew = -2)
)
bm <- ggplot(d, aes(x, y))
bm + geom_path(linewidth = 10)

bm + geom_path(linewidth = 10, alpha = d$a, lineend = "round")