densityplot: Density Plot

Description Usage Arguments Value Author(s) References Examples

View source: R/plot_landscape.R

Description

Density visualization for data points overlaid on cross-plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

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

Example output

Loading required package: phyloseq
Loading required package: ggplot2

microbiome R package (microbiome.github.com)
    


 Copyright (C) 2011-2020 Leo Lahti, 
    Sudarshan Shetty et al. <microbiome.github.io>


Attaching package:microbiomeThe following object is masked frompackage:ggplot2:

    alpha

The following object is masked frompackage:base:

    transform

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.