plot_dist_density: Distance density plot

Description Usage Arguments Value See Also Examples

View source: R/qc_visualizations.R

Description

Plot density of distances between samples in QC samples and actual samples

Usage

1
2
3
4
plot_dist_density(object, all_features = FALSE,
  dist_method = "euclidean", center = TRUE, scale = "uv",
  color_scale = NULL, fill_scale = NULL, title = NULL,
  subtitle = NULL)

Arguments

object

a MetaboSet object

all_features

logical, should all features be used? If FALSE (the default), flagged features are removed before visualization.

dist_method

method for calculating the distances, passed to dist

center

logical, should the data be centered?

scale

scaling used, as in pcaMethods::prep. Default is "uv" for unit variance

color_scale

a scale for the color of the edge of density curves, as returned by a ggplot function

fill_scale

a scale for the fill of the density curves, as returned by a ggplot function

title

the plot title

subtitle

the plot subtitle

Value

a ggplot object

See Also

dist

Examples

1
2
3
plot_dist_density(merged_sample)
# Drift correction tightens QCs together
plot_dist_density(correct_drift(merged_sample))

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.