我试图从qplot中提取500个变量的截距和斜率.我正在使用的代码:
qplot(gd, nd, data = test, colour = factor(ENT)) + geom_smooth(method = "lm", se = FALSE)
有人可以帮助我提取每个回归线(500行/变量)的截距和斜率,如附图所示.
r ggplot2 coefficients
coefficients ×1
ggplot2 ×1
r ×1