plotCorrelation {InTAD} | R Documentation |
This function creates a plot of selected pair signal-gene
plotCorrelation(obj, sId, geneName, xLabel = "Gene expression", yLabel = "Signal enrichment", colByPhenotype = "", corMethod = "pearson")
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 |
A ggplot
object for visualization or customization.
inTadSig <- newSigInTAD(enhSel, enhSelGR, rpkmCountsSel, txsSel) inTadSig <- combineInTAD(inTadSig, tadGR) plotCorrelation(inTadSig, "chr15:26372163-26398073", "GABRA5")