PlotCorrelationScatterplotForExposures: Plot scatter plot for correlation between exposures of two...

View source: R/CreateSynSBS1SB5Correlated.R

PlotCorrelationScatterplotForExposuresR Documentation

Plot scatter plot for correlation between exposures of two signatures Plot scatter plot for correlation between exposures of two signatures, SBS1 and SBS5 in this study. PlotCorrelationScatterplotForExposures is a wrapper around PlotCorrelationScatterplot. It lets exposure.counts <- the exposure matrix, and will draw a scatterplot for exposures of two signatures.

Description

Plot scatter plot for correlation between exposures of two signatures

Plot scatter plot for correlation between exposures of two signatures, SBS1 and SBS5 in this study.

PlotCorrelationScatterplotForExposures is a wrapper around PlotCorrelationScatterplot. It lets exposure.counts <- the exposure matrix, and will draw a scatterplot for exposures of two signatures.

Usage

PlotCorrelationScatterplotForExposures(
  pdf.filename,
  main.signature = "SBS5",
  correlated.signature = "SBS1",
  slope.linear,
  exposure.counts,
  xlim = c(0, 4),
  ylim = c(0, 4),
  ...
)

Arguments

pdf.filename

Name of the PDF to contain the scatterplots.

main.signature

Name of a signature with smaller variance in the log10 space. (Default: "SBS5")

correlated.signature

Name of a signature with larger variance in the log10 space. (Default: "SBS1")

slope.linear

Average ratio of mutation burden of correlated.signature over mutation burden of main.signature

exposure.counts

Data.frame or matrix storing exposures of two signatures. The exposure.counts object is usually obtained from SynSig::ReadExposure().

xlim, ylim

numeric vectors of length 2, giving the x and y coordinates ranges. Default: c(0,4)

...

Other parameters provided to the function graphics::plot().

main

Title on the scatterplot. Default: NULL


steverozen/SynSigGen documentation built on April 1, 2022, 8:54 p.m.