With ggplot, I plot a figure like this
df = data.frame(xx= seq(1,100),yy=rnorm(100)*2,
zz = rep(c("a","b"),50))
ggplot(aes(x = xx, y = yy, color = zz, group = zz), data = df) + geom_smooth() + geom_point() + theme_bw()
theme(legend.title=element_blank())
`
My original dataset has a lot of dots. Because of the same color between smoothing lines and dots in same groups, this type of figure with my data is so messy.
I would like to make pale color (or change color manually) for dots and show the lines more clearly.
How to have different colors for dots and lines with such figure?