I am trying to extract intercepts and slopes for 500 variables from a qplot. The code I am using:
qplot(gd, nd, data = test, colour = factor(ENT)) +
geom_smooth(method = "lm", se = FALSE)
Could someone help me extract the intercept and slope for each regression line (500 lines/variables) as plotted in the attached figure.