I would like to plot multiple lines with data labels but all my attempts have returned an error message so far.
ggplot(data, aes(year)) +
geom_line(aes(y = var1), color = "#E20335", size = 1.5) +
geom_point(aes(y = var1), color = "#E20335", size = 3) +
geom_line(aes(y = var2), color = "#292753", size = 1.5) +
geom_point(aes(y = var2), color = "#292753", size = 3) +
scale_x_continuous(breaks = 2010:2020) +
scale_y_comma() +
labs(title = 'something',
subtitle = 'something',
x = 'This axis title intentionally left blank',
y = 'This axis title intentionally left blank',
caption = 'something')
I want to insert the labels into this code, so that they are placed around data points. Any help would be greatly appreciated.
