This is my data frame and my ggplot:
df_f <- tibble(
seq_n = seq(1, 11, 1),
top_white_values = c(1970, 1985, 1963, 1949, 1943, 1941, 1930, 1942, 1985, 1955, 1971)
)
ggplot(data = df_f) +
geom_point(aes(x = seq_n, y = top_white_values)) +
geom_text(aes(x = seq_n, y = top_white_values, label = top_white_values))
I need to connect the dots labeled by year to the x-axis numbers but I need to use geom_function(). I would like to have some rounded functions like x^2, x^2, x^(1/2).
This is the result I want to achieve:
PS: Is there anything like a "Math Function Generator" that could help me to know the function related to the draw I did in this graphics? For example, I draw a function like the above and the App generates to me the mathematical function similar to this shape/draw?

