Building a textbox to highlight the difference between two points

data-visualisation
annotations
When the x axis is showing dates… turns out it wasn’t too bad!
Author
Affiliation

Building Stories with Data

Published

June 17, 2022

Working on a project for a client who wants a textbox specifying the difference between two points on a plot.

Turns out, that’s not a problem! We can get the x-coordinate for the box like this!

🥳

Code snippet: mean(c(lubridate::as_date('2022-06-20'),                lubridate::as_date('2022-06-24')))

Reuse

Citation

For attribution, please cite this work as:
Thompson, Cara. 2022. “Building a Textbox to Highlight the Difference Between Two Points.” June 17, 2022. https://www.cararthompson.com/posts/2022-06-17-working-on-a-project-for/.