sizeAlong: Creates different size values along a vector

Description Usage Arguments Value Examples

View source: R/sizeAlong.R

Description

Creates different size values along a vector

Usage

1
sizeAlong(x, head = 20, to = c(0.1, 2.5))

Arguments

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

Value

Numeric verctor with different size values

Examples

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

mpio-be/windR documentation built on Feb. 2, 2020, 10:04 a.m.