I'm trying to add a single point to a curve (line equation in terms of x) in ggplot in r along an x axis from 0 to 35. Whenever I try to plot a point I run into the problem where I get an error with aes()... how do I fix this? All I need is a singular point labeled "point" that is blue and at those coordinates.
ggplot(data.frame(x=c(0,35)), aes(x)) +
stat_function(fun=function(x)10^(-0.05841*x)+10^7.2241, geom="line") +
geom_point() +
annotate("point", x = 23, y = 39000, colour = "blue")
And when I run this I get this error:
Aesthetics must be either length 1 or the same as the data (2): y
thanks!