bumpup_bounded: Bump labels up, but drops some if too crammed

Description Usage Arguments

View source: R/directlabels.R

Description

Label positioning strategy similar to bumpup, but with a cap on the maximum vertical displacement that can be applied to a label. If the required displacement overshoots the cap, the label is dropped. This creates an effect similar to the labelling strategy seen in Tableau, except with better results.

Usage

1
bumpup_bounded(d, max_bump = 1.1, ...)

Arguments

d

the directlabels positioning dataframe.

max_bump

the maximum bump factor allowed before a label is dropped. Expressed as a factor of the label's height.


gmega/playaxr documentation built on Dec. 20, 2020, 6:22 a.m.