I have performed a loess regression on some data and plotted it. The problem is I'd like to export the black line and light red line (see figure) into excel. Is it possible?
Clarification:
I want to export the underlying data from the loess regression not the graph.
Code used to calculate it:
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")