Learn R Programming

volker (version 2.1.0)

get_angle: Angle labels

Description

Calculate angle for label adjustment based on character length.

Usage

get_angle(labels, threshold = 20, angle = 45)

Value

A single angle value.

Arguments

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.