I have two sets of scatterplots. I want to use smoothScatter() but it seems that the add function does not work, I want to use separated colors for both distributions. For example:
X1<-rnorm(1000, mean = -2, sd = 1) Y1<-rnorm(1000, mean = -2, sd = 1)
X2<-rnorm(1000, mean = 2, sd = 1) Y2<-rnorm(1000, mean = 2, sd = 1)
smoothScatter(X1,Y1,col="green",colramp=colorRampPalette(c("white", "green"))); smoothScatter(X2,Y2,col="green",colramp=colorRampPalette(c("white", "red")),add=T);
Is it possible ?