t_test.Mat_identical.vs.different: Test with a Welch t-test between the group of similar tissues...

View source: R/metaAnalyses.R

t_test.Mat_identical.vs.differentR Documentation

Test with a Welch t-test between the group of similar tissues versus the group of different tissues. Take the diagonal and test it versus the lower triangle of the matrix.

Description

Test with a Welch t-test between the group of similar tissues versus the group of different tissues. Take the diagonal and test it versus the lower triangle of the matrix.

Usage

t_test.Mat_identical.vs.different(Mat, yLab,
  label.diag = "Same-tissue pairs",
  label.low.tri = "Different tissues pairs", xLab = "Type",
  pval = TRUE, showMean = TRUE, output = "test", publish = TRUE)

Arguments

Mat

correlation matrix between two studies tissue expression (column correlation)

yLab

character string. Title of the y-axis

label.diag

character string. Label for the pairs in the diagonal of the matrix.

label.low.tri

character string. Label for the pairs in the lower.triangle of the matrix.

xLab

character string. Title of the x-axis. Default: 'Type'.

pval

boolean. Default: TRUE. Whether to add the p-value on the plot.

showMean

boolean. Default: TRUE. Whether to add the mean of each group on the plot.

output

character string that allows to pick the output; 'identical' for the same pairs of tissues, 'different' for the different pairs of tissues, 'test' for the test, 'plot' for the plot and 'test_identical' for a list comprising the identical tissues and the test.

publish

boolean. Default: TRUE. Whether to apply theme_bw().

Value

depends on 'output'; it can be a data.frame, a figure or the result of the test.


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.