create.scatter.dens.points {RnBeads} | R Documentation |
Creates a scatterplot containing all points in a given data.frame. Points are colored according to point density. Optionally, a selection of points are shown in a different color
create.scatter.dens.points(df2p, is.special = NULL, dens.special = TRUE, mock = FALSE)
df2p |
|
is.special |
boolean vector of length equal to the number of rows in |
dens.special |
Flag indicating whether the points of the special population should be colored according to their density |
mock |
Should only the axis be plotted? useful when exporting scatterplots with lots of points as immage and the corresponding axis as vector graphics. |
ggplot
object
Fabian Mueller
d <- data.frame(x=rnorm(1000),y=rnorm(1000)) s <- rep(FALSE,1000) s[sample(1:length(s),100)] <- TRUE create.scatter.dens.points(d,s)