Learn R Programming

directlabels (version 2021.1.13)

lines2: lines2

Description

Positioning Method for 2 groups of longitudinal data. One curve is on top of the other one (on average), so we label the top one at its maximal point, and the bottom one at its minimal point. Vertical justification is chosen to minimize collisions with the other line. This may not work so well for data with high variability, but then again lineplots may not be the best for these data either.

Usage

lines2(d, offset = 0.3, 
    ...)

Arguments

d

The data.

offset

Offset from 0 or 1 for the vjust values.

ignored.