plot_read_depth: View read depth

View source: R/plot_read_depth.R

plot_read_depthR Documentation

View read depth

Description

View read depth

Usage

plot_read_depth(physeq, xvar = NULL, lin = FALSE, cvar = NULL, clrs = NULL)

Arguments

physeq

A phyloseq object

xvar

NULL A variable (column name) from sample_data(physeq) by which to group samples on the x-axis. Must be categorical. If NULL, no grouping will be performed.

lin

FALSE If TRUE, the y-axis will be on a linear scale. By default it is log-scaled.

cvar

NULL A variable (column name) from sample_data(physeq) by which the points should be coloured. If NULL, all points will be black. May be continuous or categorical. See the clrs argument if you want to specify your colours.

clrs

NULL If the cvar parameter is set and this is unset, colours will be taken from tax_colours if cvar is categorical and use ggplot2's default (blue) if cvar is continuous. If cvar is categorical, you may provide a named colour vector to use instead of tax_colours and if it is continuous you may provide a two-colour vector. The vector must have names "low" and "high". If cvar is NOT set, you may use this parameter to provide a single colour name or hex code that will be applied to all points.

Details

Creates a read depth boxplot

Value

A ggplot2 object


JCSzamosi/aftersl1p documentation built on July 3, 2025, 8:37 p.m.