I wish to move the label fully to the right of the plot line. I do not wish to extend the x-axis any further. I just need to create space. How do I do this?
library(tidyverse)
library(ggrepel)
df <- tibble(
x = as.Date(c("1990-01-01", "2000-01-01")),
y = c(1, 3)
)
lbls <- filter(df, x == "2000-01-01")
ggplot(df, aes(x = x, y = y)) +
geom_line() +
geom_label_repel(data = lbls, label = "Hello there I am a very long label") +
theme_minimal()