Here is my sample code.
library(ggplot2)
library(latex2exp)
p1 <- ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
alpha=10
beta=20
p1 + annotate("label", x = 4, y = 25, label = TeX("$y = alpha e ^{betax}$"))
I was trying to get a label like y=10e^{20x}. Is it possible with latex2exp or is there better way?
Thanks

