From 2d6eed5d40b7a50d792ce39c3fe1dc202684853b Mon Sep 17 00:00:00 2001
From: Cosmin  SAVEANU <cosmin.saveanu@pasteur.fr>
Date: Mon, 13 Sep 2021 15:24:03 +0200
Subject: [PATCH] Update Density coloured scatterplots with ggplot2/README.md

---
 Density coloured scatterplots with ggplot2/README.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Density coloured scatterplots with ggplot2/README.md b/Density coloured scatterplots with ggplot2/README.md
index 195d945..15bda83 100644
--- a/Density coloured scatterplots with ggplot2/README.md	
+++ b/Density coloured scatterplots with ggplot2/README.md	
@@ -1,10 +1,12 @@
 # Density coloured scatter plots to avoid overplotting
 
-Any time.
+Looking at correlations between various features in large scale data sets is best done with scatter plots. However, when the number of values increases, the central region of scatterplots is so crowded, that no clear information about how many points are present can be observed. A way to help better visualize the data density is to add color to the points, as in the excellent [ggpointdensity](https://cran.r-project.org/package=ggpointdensity) R package, by Lukas PM Kremer that includes the `geom_pointdensity` function. However, plotting so many dots become a problem when drawing figures, as each tiny dot is rendered by the pdf viewer and there is a lot of useless information in the final files.
+
+The overplotting problem has been solved by FACS software, where tens and hundred of thousands of events are displayed in multiple scatter plots. A solution for R was proposed in one of the answers to [this](https://stackoverflow.com/questions/13094827/how-to-reproduce-smoothscatters-outlier-plotting-in-ggplot/59147836#59147836) question on stackoverflow and I adapted it to my own needs.
 
 Running the included example from the R script leads to this image:
 
 ![xyplot](<./xyplot_density.png> "X, Y scatterplot with density information")
 
-The result will need further adjustments, in Inkscape.
+The result will need further adjustments, usually done in Inkscape.
 
-- 
GitLab