R/fun_animate_data.R
atl_size_along.Rd
Copied from https://github.com/mpio-be/windR
atl_size_along(x, head = 20, to = c(0.1, 2.5))
Vector along which alpha is created
Numeric parameter influencing the lenght of the head
Numeric vector including the minimum and maximum size
Numeric verctor with different size values
Mihai Valcu & Johannes Krietsch
library(ggplot2) d <- data.frame( x = 1:100, y = 1:100, s = atl_size_along(1:100, head = 70, to = c(0.1, 5)) ) bm <- ggplot(d, aes(x, y)) bm + geom_path(linewidth = 1) bm + geom_path(linewidth = d$s, lineend = "round")