Description Usage Arguments Value Examples
Creates different alpha values along a vector
1 | alphaAlong(x, head = 20, skew = -2)
|
x |
Vector along which alpha is created |
head |
Numeric parameter influencing the lenght of the head |
skew |
Numeric parameter influencing the skew of alpha |
Numeric verctor with different alpha values
1 2 3 4 5 | library(ggplot2)
d = data.frame(x = 1:100, y = 1:100, a = alphaAlong(1:100, head = 20, skew = -2))
bm = ggplot(d, aes(x, y))
bm + geom_path(size = 10)
bm + geom_path(size = 10, alpha = d$a, lineend = 'round')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.