plotHelper {ORFik} | R Documentation |
Should only be used internally
plotHelper( coverage, df, outdir, scores, returnCoverage = FALSE, title = "coverage metaplot", plot.ext = ".pdf", colors = c("skyblue4", "orange"), plotFunction = "windowCoveragePlot" )
coverage |
a data.table containing at least columns (count/score, position), it is possible to have additionals: (genes, fraction, feature) |
df |
an ORFik |
outdir |
directory to save to (default: NULL, no saving) |
scores |
scoring function (default: c("sum", "transcriptNormalized")), see ?coverageScorings for possible scores. |
returnCoverage |
(defualt: FALSE), return the ggplot object (TRUE) or NULL (FALSE). |
title |
Title to give plot |
plot.ext |
character, default: ".pdf". Alternatives: ".png" or ".jpg". |
colors |
Which colors to use, default auto color from function
|
plotFunction |
Which plot function, default: windowCoveragePlot |
NULL (or ggplot object if returnCoverage is TRUE)