densityplot {microbiome}R Documentation

Density Plot

Description

Density visualization for data points overlaid on cross-plot.

Usage

densityplot(x, main = NULL, x.ticks = 10, rounding = 0,
  add.points = TRUE, col = "black", adjust = 1, size = 1,
  legend = FALSE, shading = TRUE)

Arguments

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

Value

ggplot2 object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

   ## Not run: 
       # p <- densityplot(cbind(rnorm(100), rnorm(100)))
   
## End(Not run)

[Package microbiome version 1.6.0 Index]