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