plot_hairpin_coverage: Plot coverage across hairpins

Description Usage Arguments

View source: R/plots.R

Description

Plot coverage across hairpins

Usage

1
2
3
4
plot_hairpin_coverage(df, x, y, col = "sample", x_lab = "Position",
  y_lab = "Counts", pal = "Set1", point = F,
  facet_by_hairpin = TRUE, pt_alpha = 0.7, pt_size = 0.8,
  xlimits = NULL)

Arguments

df

dataframe with coverage data

x

column to use for x-axis

y

column to use for y-axis

col

column to use for coloring lines (defaults to "Sample")

x_lab

label for x axis (defaults to "Position")

y_lab

label for y axis (defaults to "Counts")

pal

RcolorBrewer palette to use for coloring col (defaults to "Set1")

point

show points in addition to lines (defaults to FALSE)

facet_by_hairpin

plot each hairpin individually (defaults to TRUE)

pt_alpha

passed to pt.alpha argument for ggplot2::geom_line() (defaults to 0.7)

pt_size

passed to pt.size argument for ggplot2::geom_line() (defaults to 0.8)

xlimits

two element numeric vector to supply to ggplot2::xlim() (defaults to NULL)


hesselberthlab/scrunchy documentation built on Dec. 11, 2018, 1:30 a.m.