densityplot {microbiome} | R Documentation |
Density visualization for data points overlaid on cross-plot.
densityplot( x, main = NULL, x.ticks = 10, rounding = 0, add.points = TRUE, col = "black", adjust = 1, size = 1, legend = FALSE, shading = TRUE, shading.low = "white", shading.high = "black", point.opacity = 0.75 )
x |
Data matrix to plot. The first two columns will be visualized as a cross-plot. |
main |
title text |
x.ticks |
Number of ticks on the X axis |
rounding |
Rounding for X axis tick values |
add.points |
Plot the data points as well |
col |
Color of the data points. NAs are marked with darkgray. |
adjust |
Kernel width adjustment |
size |
point size |
legend |
plot legend TRUE/FALSE |
shading |
Shading |
shading.low |
Color for shading low density regions |
shading.high |
Color for shading high density regions |
point.opacity |
Transparency-level for points |
ggplot2 object
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
# p <- densityplot(cbind(rnorm(100), rnorm(100)))