plotCorrelation: Function to plot correlation

Description Usage Arguments Value Examples

View source: R/plotCorrelation.R

Description

This function creates a plot of selected pair signal-gene

Usage

1
2
3
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

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

kokonech/InTAD documentation built on Jan. 1, 2021, 9:23 p.m.