Extract the PASS/WARN/FAIL summaries and plot them
plotSummary(
x,
usePlotly = FALSE,
labels,
pwfCols,
cluster = FALSE,
dendrogram = FALSE,
...
)
# S4 method for class 'ANY'
plotSummary(
x,
usePlotly = FALSE,
labels,
pwfCols,
cluster = FALSE,
dendrogram = FALSE,
...
)
# S4 method for class 'character'
plotSummary(
x,
usePlotly = FALSE,
labels,
pwfCols,
cluster = FALSE,
dendrogram = FALSE,
...
)
# S4 method for class 'FastqcDataList'
plotSummary(
x,
usePlotly = FALSE,
labels,
pwfCols,
cluster = FALSE,
dendrogram = FALSE,
...,
gridlineWidth = 0.2,
gridlineCol = "grey20"
)
Can be a FastqcData
, FastqcDataList
or character
vector of file paths
logical
. Generate an interactive plot using plotly
An optional named vector of labels for the file names. All filenames must be present in the names. File extensions are dropped by default.
Object of class PwfCols()
containing the colours
for PASS/WARN/FAIL
logical
default FALSE
. If set to TRUE
,
fastqc data will be clustered using hierarchical clustering
logical
redundant if cluster
is FALSE
if both cluster
and dendrogram
are specified as TRUE
then the dendrogram will be displayed.
Used to pass various potting parameters to theme.
Passed to geom_hline and geom_vline to determine width and colour of gridlines
A ggplot2 object (usePlotly = FALSE
)
or an interactive plotly object (usePlotly = TRUE
)
This uses the standard ggplot2 syntax to create a three colour plot. The output of this function can be further modified using the standard ggplot2 methods if required.
# Get the files included with the package
packageDir <- system.file("extdata", package = "ngsReports")
fl <- list.files(packageDir, pattern = "fastqc.zip", full.names = TRUE)
# Load the FASTQC data as a FastqcDataList object
fdl <- FastqcDataList(fl)
# Check the overall PASS/WARN/FAIL status
plotSummary(fdl)