generateIndividualPlots: Generate individual plots from countsimQCReport output

Description Usage Arguments Value Author(s) Examples

View source: R/generateIndividualPlots.R

Description

Generate separate plots for all evaluation criteria using the collection of ggplot objects that can be saved when generating a countsimQC report (by setting savePlots = TRUE).

Usage

1
2
3
4
5
6
generateIndividualPlots(
  ggplotsRds,
  device = "png",
  outputDir = "./",
  nDatasets = 2
)

Arguments

ggplotsRds

The path to a .rds file generated by countsimQCReport by setting savePlots = TRUE, or the list of plots stored in this file.

device

One of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only) (will be provided to the ggsave function from the ggplot2 package).

outputDir

The output directory where the plots should be generated.

nDatasets

The number of data sets that are compared in the figures. This is needed to set the size of the plots correctly.

Value

Nothing is returned, but plots are generated in the designated output directory.

Author(s)

Charlotte Soneson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Load example data
data(countsimExample)
## Not run: 
## Generate report
countsimQCReport(countsimExample, outputDir = "./",
                 outputFile = "example.html", savePlots = TRUE)
## Generate individual plots
generateIndividualPlots("example_ggplots.rds", nDatasets = 3)

## End(Not run)

countsimQC documentation built on Feb. 5, 2021, 2:02 a.m.