correlate: Correlate the values of two named vectors

Description Usage Arguments Value Author(s)

View source: R/correlationPlot.R

Description

correlate calculates the correlation of a list of named vectors and a named vector. Only entries, existing in both vectors are used.

Usage

1
correlate(regions=NULL, means, expression, method="spearman")

Arguments

means

a list of named integer vectors.

expression

a named integer vector

method

method for calculating the correlation

regions

a data frame, containing four columns. The pos columns is a character with values out of c("start", "region", "end"). upstream and downstream ar integers, indicating how many bases upstream and downstream from the specified position in the feature are included. level is an integer, that says at which level the rectangle in the lower device should be plotted. The numeration goes from the bottom to the ceiling. cor is the correlation of the region, which is plotted in the upper panel.

Value

a list with the correlations of each element of the list to the expression vector.

Author(s)

Benedikt Zacher zacher@lmb.uni-muenchen.de


Starr documentation built on April 28, 2020, 7:52 p.m.