Create a ggplot2 object with an arrow for each sample
that spans from its pre-training to post-training value.
Arguments
- x
data.framewith pre and post values. The data should be filtered to a specific age and sex.- pre
character; name of a column in
xcontaining pre-training values.- post
character; name of a column in
xcontaining post-training values.- stats
data.framewith post - pre stats for each training group. The data should be filtered to a specific measure, age, and sex.- width
numeric; value between 0 and 1 specifying the maximum width of the group with the most samples.
- angle
numeric; angle of the arrow heads.
- scale
numeric; scaling factor for text and other plot elements.