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")

InTAD documentation built on Nov. 8, 2020, 7:47 p.m.