get_angle | R Documentation |
Calculate angle for label adjustment based on character length.
get_angle(
labels,
threshold = VLKR_PLOT_ANGLE_THRESHOLD,
angle = VLKR_PLOT_ANGLE_VALUE
)
labels |
Vector of labels to check. The values are converted to characters. |
threshold |
Length threshold beyond which the angle is applied.
Default is 20. Override with |
angle |
The angle to apply if any label exceeds the threshold.
Default is 45. Override with |
A single angle value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.