Add significance label and line to a plot
Arguments
- df
A dataframe containing one column per variable in the desired aesthetics (x, y, colour, etc.) and the following columns:
x_star
: x position of the star labely_star
: y position of the star labelstars
: the star label (e.g., "", "", "")x_line
: x position of the start of the linex_line_end
: x position of the end of the liney_line
: y position of the line
- size_star
Size of the star label. Default is 2.5.
- lw
Line width of the significance line. Default is 0.2.
- color
Color of the star label and line. Default is "black".
- linetype
Line type of the significance line. Default is "solid".