plotHelper {ORFik} | R Documentation

## Helper function for coverage plots

### Description

Should only be used internally

### Usage

    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 (skyblue4)
`plotFunction` | Which plot function, default: windowCoveragePlot

### Value

NULL (or ggplot object if returnCoverage is TRUE)

[Package ORFik version 1.8.6 Index]