我对一些数据进行了黄土回归并绘制了它。问题是我想将黑线和浅红线(见图)导出到 excel 中。可能吗?
澄清:
我想从黄土回归而不是图表中导出基础数据。
用于计算它的代码:
ggplot(data, aes(x=bigangle, y=meanz, colour=treatment)) +
geom_point(data=df, aes(y = X2/median(df$X2), x=X8),color="red",alpha=.6) +
geom_smooth(data=df, aes(y = X2/median(df$X2),x=X8),fill="red", colour="black", size=1,alpha=0.4)+
geom_point(position=position_dodge(0.1),aes(shape=treatment), # Shape depends on cond
size = 4,colour="black",fill="black")