densityplot: Density Plot

View source: R/plot_landscape.R

densityplotR 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,
  shading.low = "white",
  shading.high = "black",
  point.opacity = 0.75
)

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

shading.low

Color for shading low density regions

shading.high

Color for shading high density regions

point.opacity

Transparency-level for points

Value

ggplot2 object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

# p <- densityplot(cbind(rnorm(100), rnorm(100)))

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.