plotCorrDecay: Plot correlation delay

Description Usage Arguments Details Examples

View source: R/evaluateCorrDecay.R

Description

Plot correlation delay using subsampling

Usage

1
2
3
4
5
6
7
8
plotCorrDecay(
  dfDist,
  method = c("R", "Rsq"),
  xlim = c(10, 1e+06),
  n = 100,
  outlierQuantile = 0.001,
  densityExponent = 0.25
)

Arguments

dfDist

data.frame of distance and correlation from from evaluateCorrDecay()

method

on show either R or Rsq on y-axis

xlim

min and max values for x-axis

n

the number of equally spaced points at which the density is to be estimated.

outlierQuantile

show points if density is less than this quantile

densityExponent

color based on density^densityExponent

Details

Plot correlation versus log10 distance. Sample equal number of points for each bin along the x-axis.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(GenomicRanges)
library(ggplot2)

data('decorateData')

# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation ) 

# Evaluate how correlation between features decays with distance
dfDist = evaluateCorrDecay( treeList, simLocation )

# make plot
plotCorrDecay( dfDist )

GabrielHoffman/decorate documentation built on July 26, 2021, 12:18 a.m.