I want to add label in ggplot2 through function annotate.
Before I done this by annotate(... label = "a"~'='~100~t~y^-1",...). Now I use letter 'df' to represent 100, and the code is label = paste("atop('a = '*", df,")"). Is there any way to add unit?
annotate("text",
x = 0, y = 1.2,
size = 12,
parse = TRUE,
# label = "a~'='~100~t~~y^-1",
label = paste("atop('a = '*", df,")"),
family = "serif")+