I have two equally sized datasets (~20,000 rows each) For each dataset I have an X and a Y score, and I want to show that the two datasets have different distributions. However, when I plot this (even with transparency, alpha=.5 or alpha=.3) the second distribution plotted blocks the first one:
I want to use something like smoothScatter for the grey points (https://www.rdocumentation.org/packages/graphics/versions/3.4.0/topics/smoothScatter), but cannot figure out how to plot a smooth scatter plot over a regular one.
Any suggestions for either how to plot a smoothScatter plot over a regular plot, or more generally how to plot the dense grey points over the dense black points?
Just to clarify: Both the black and grey points are very dense in the diagonal, although grey is more dense. The grey points have few points slightly off the diagonal, so adjusting the transparency makes those off diagonal points fade away, which I do not want to do either.