Hi all
I am unsure how to make a histogram using one df and use a second date from to add geom_vlines with text saying, in this case, Event A and Event B
df <- structure(list(id = 1:30, date = structure(c(18429, 18421, 18425,
18429, 18430, 18424, 18428, 18418, 18418, 18424, 18423, 18422,
18424, 18426, 18425, 18423, 18422, 18421, 18422, 18424, 18423,
18425, 18426, 18418, 18429, 18425, 18426, 18424, 18422, 18420
), class = "Date")), row.names = c(NA, -30L), class = c("tbl_df",
"tbl", "data.frame"))
my_dates <- structure(list(date = structure(c(18418, 16967), class = "Date"),
event = c("Event A", "Event B")), row.names = c(NA, -2L), class = c("tbl_df",
"tbl", "data.frame"))
Something like this:
Thanks