Skip to main content

Module direct_labels

Module direct_labels 

Source
Expand description

Direct labels (#543, R’s directlabels / a ggrepel label at the last point): instead of a colour legend, each line’s colour group is named at its end, in its own colour, in the band right of the panel that a right legend would take. Labels never overlap: they are pushed apart vertically (in order of their line’s end), then kept inside the panel’s height; a label moved away from its line’s end gets a short leader to it.

Functions§

draw
Draw the direct labels; Ok(false) when there is nothing to label this way (the caller draws the legend instead).