I'm trying to emulate this graph by https://twitter.com/ariamsita:
But I can't figure out how to make the line (with a label) that shows the gap between the orange line and the purple one.
I'm trying to emulate this graph by https://twitter.com/ariamsita:
But I can't figure out how to make the line (with a label) that shows the gap between the orange line and the purple one.
Here's a way. We need to create a separate data set from your own for the labeling and segment. Then we can use
geom_line
,geom_point
,geom_segment
, andgeom_label
: