plotHelper: Helper function for coverage plots

Description Usage Arguments Value

View source: R/experiment_plots.R

Description

Should only be used internally

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotHelper(
  coverage,
  df,
  outdir,
  scores,
  returnCoverage = FALSE,
  title = "coverage metaplot",
  colors = c("skyblue4", "orange"),
  plotFunction = "windowCoveragePlot"
)

Arguments

coverage

a data.table containing at least columns (count/score, position), it is possible to have additionals: (genes, fraction, feature)

df

an ORFik experiment

outdir

directory to save to (default: NULL, no saving)

scores

scoring function (default: c("sum", "zscore")), see ?coverageScorings for possible scores.

returnCoverage

(defualt: FALSE), return the ggplot object (TRUE) or NULL (FALSE).

title

Title to give plot

colors

Which colors to use, default auto color from function experiment.colors, new color per library type. Else assign colors yourself.

plotFunction

Which plot function, default: windowCoveragePlot

Value

NULL (or ggplot object if returnCoverage is TRUE)


ORFik documentation built on March 27, 2021, 6 p.m.