I have the following table. Now I have visualized it using ggplot2. How can I obtain the lower boundary of se and the value on the x-axis corresponding to the regression curve when y = 1?
library(tidyverse)
set.seed(114)
tableInput <- tibble(
x = sample(60:270,100,replace = T) %>% sort(decreasing = F),
y = rnorm(100,1,1) %>% abs(),
)
ggplot(tableInput, aes(x,y)) +
geom_smooth(method = lm) +
geom_hline(yintercept = 1) +
scale_x_continuous(n.breaks = 10) +
coord_cartesian(ylim = c(.5,2),xlim = c(50,280)) +
theme_classic()