Hello I have the following question about ggplot and geom_smooth. How do I get it so that the individual lines are less visible, so adjust the alpha so to speak. Unfortunately alpha here only changes the visibility of the CIs. How can I still adjust it?
This is my code:
ggplot() +
stat_smooth(se=F, data = df_pat, aes(x = sc, y = changes, color = factor(pat), group = factor(pat)), alpha = 0.0001) +
geom_smooth(se=F, data = new_df, aes(x = sc, y = changes, color = factor(pat), group = factor(pat))) +
labs(x = expression(" " ~ epsilon),
y = "y") +
scale_color_viridis(discrete = TRUE, option = "D")+
scale_fill_viridis(discrete = TRUE) +
guides(color = guide_legend(title = "Pattern"))+
theme(legend.position = "bottom")
My plot: enter image description here
Did my research on the web