Draw either the minfi QC plot or the detection P-value plot from an assessment object returned by assessSamplesMinfiEwasWater().

plotAssessmentMinfiEwasWater(
  assessment,
  plot = c("qc", "detection"),
  display = FALSE,
  file = NULL,
  width = 2000L,
  height = 1000L,
  res = 150L,
  verbose = FALSE,
  logs = FALSE,
  log_dir = NULL,
  log_file = "log_plotAssessmentMinfiEwasWater.txt"
)

Arguments

assessment

Object returned by assessSamplesMinfiEwasWater().

plot

Character. Plot type: "qc" or "detection".

display

Logical. If TRUE, draw the plot on the active graphics device.

file

Character or NULL. TIFF file written when supplied.

width

Integer. TIFF width in pixels when file is supplied.

height

Integer. TIFF height in pixels when file is supplied.

res

Integer. TIFF resolution in DPI when file is supplied.

verbose

Logical. If TRUE, emit progress messages with message().

logs

Logical. If TRUE, write the same messages to a log file.

log_dir

Character or NULL. Directory used for the log file when logs = TRUE.

log_file

Character. File name used when logs = TRUE.

Value

Invisibly returns the saved TIFF path when file is supplied, otherwise NULL.

Examples

assessment <- list(
  meanDetP = c(S1 = 0.01, S2 = 0.02, S3 = 0.04),
  detPThreshold = 0.05
)
plotAssessmentMinfiEwasWater(
  assessment = assessment,
  plot = "detection",
  display = FALSE,
  verbose = FALSE,
  logs = FALSE
)