Calculate angle for label adjustment based on character length.
get_angle(
labels,
threshold = VLKR_PLOT_ANGLE_THRESHOLD,
angle = VLKR_PLOT_ANGLE_VALUE
)
A single angle value.
Vector of labels to check. The values are converted to characters.
Length threshold beyond which the angle is applied.
Default is 20. Override with options(vlkr.angle.threshold=10)
.
The angle to apply if any label exceeds the threshold.
Default is 45. Override with options(vlkr.angle.value=30)
.