plotCorrelation {InTAD} | R Documentation

## Function to plot correlation

### Description

This function creates a plot of selected pair signal-gene

### Usage

    plotCorrelation(obj, sId, geneName, xLabel = "Gene expression",
      yLabel = "Signal enrichment", colByPhenotype = "",
      corMethod = "pearson")

### Arguments

`obj` | InTADSig object with signals and genes combined in TADS
`sId` | Signal id based on genomic cooridantes i.e. "chr:start-end"
`geneName` | Gene name to select. Based on "gene_name" attribute.
`xLabel` | The label to mark signal X-axis. Default: "Gene expression"
`yLabel` | The label to mark signal Y-axis. Default: "Signal enrichment"
`colByPhenotype` | The pheno data column i.e. tumour type that can be use for colour
`corMethod` | Correlation method. Default: Pearson

### Value

A `ggplot` object for visualization or customization.

### Examples

    inTadSig <- newSigInTAD(enhSel, enhSelGR, rpkmCountsSel, txsSel)
    inTadSig <- combineInTAD(inTadSig, tadGR)
    plotCorrelation(inTadSig, "chr15:26372163-26398073", "GABRA5")

[Package InTAD version 1.8.0 Index]