I am producing this plot with ggplot2, here each Gaussian sum to 1 but I would like that all 4 together sum to 1 so that the density on y axis should be divided of 4. Anyone know how to do it? Here the code that I am using my "data" i a table with 1 column of distances and 1 column with the relative cluster.
p5 <- ggplot(data,aes(x=distances, fill=cluster)) +
geom_density(alpha=0.25,adjust=4)+
scale_fill_manual(values = c("seagreen2","darkseagreen2","palegreen4","palegreen1"))+
xlab("distance (nm)")+theme_bw()
p5

