Description Usage Arguments Value Author(s) Examples
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
1 2 3 4 5 6 | 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
1 2 3 4 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.