get_angle {volker} | R Documentation |
Calculate angle for label adjustment based on character length.
get_angle(labels, threshold = 20, angle = 45)
labels |
Vector of labels to check. |
threshold |
Length threshold beyond which the angle is applied. Default is 20. |
angle |
The angle to apply if any label exceeds the threshold. Default is 45. |
A single angle value.