Skip to contents

Line plot of fragment lengths. Wraps BPCells::plot_fragment_length().

Usage

plot_fragment_length(
  x,
  max_length = 700L,
  style = c("ArchR", "BPCells"),
  title = NULL,
  line_color = "#1D3557",
  ...
)

# S3 method for class 'IterableFragments'
plot_fragment_length(
  x,
  max_length = 700L,
  style = c("ArchR", "BPCells"),
  title = NULL,
  line_color = "#1D3557",
  ...
)

# S3 method for class 'MarchRDataset'
plot_fragment_length(
  x,
  frags_name = character(0),
  max_length = 700L,
  style = c("ArchR", "BPCells"),
  title = NULL,
  line_color = "#1D3557",
  ...
)

# S3 method for class 'MarchRProject'
plot_fragment_length(
  x,
  dataset_name = character(0),
  frags_name = character(0),
  max_length = 700L,
  style = c("ArchR", "BPCells"),
  title = NULL,
  line_color = "#1D3557",
  ...
)

Arguments

x

(IterableFragments | MarchRDataset | MarchRProject) Fragment source.

max_length

(integer) Maximum fragment length to display. Default 500.

style

(character) "ArchR" for ArchR-style aesthetics or "BPCells" for BPCells defaults. Default "ArchR".

title

(character) Plot title. NULL auto-derives from dataset name. Only used when style = "ArchR".

line_color

(character) Line color when style = "ArchR". Default "#1D3557" (dark blue).

...

Additional arguments passed to BPCells::plot_fragment_length().

frags_name

(character) Fragment name. Auto-selected if one.

dataset_name

(character) Dataset name (MarchRProject only). Auto-selected if one.

Value

A ggplot2 object.