I want to represent two different 2D distributions using ggplot2. But the two distributions are partially overlapping and I am struggliing to make it look nice.
For example, here is a plot from this code...
ggplot(control_group, aes(x=eTIV, y=global_SA)) +
geom_density_2d(bins=4, alpha = .8, color ="blue") +
geom_density_2d(data = syn_group, color="red", bins=4, alpha = .8) +
xlim(1000000, 2000000)+
ylim(140000, 200000) +
theme_classic()
I would like the inner contours to be darker and the outer ones to fade out (either with a line or a fill) but can't find anyway of specifying a vector of colours for alpha or fill