test_CorrMat_identical_different: Create the data.frame and can also test and plot the...

View source: R/metaAnalyses.R

test_CorrMat_identical_differentR Documentation

Create the data.frame and can also test and plot the comparison between the tissues of the first study with the second one

Description

Create the data.frame and can also test and plot the comparison between the tissues of the first study with the second one

Usage

test_CorrMat_identical_different(CorrMat, test = FALSE, plot = FALSE,
  publish = TRUE, x = 0.75, y = 0.1, ym = 0.02, textaxis = 15,
  titleaxis = 15, out = "DFtest", sep = ".",
  remove.identity = TRUE, reorder = TRUE)

Arguments

CorrMat

correlation matrix between two studies tissue expression (column correlation)

test

boolean. Default: FALSE. Whether a (Welch's) t-test should be performed between the group where the same tissue from each study are compared together and the group where one tissue from the first study is compared to a random tissue of the second tissue.

plot

boolean. Default: FALSE. Whether the Test should be plotted as well.

publish

boolean. Default:TRUE. Whether the theme theme_bw() should be applied to the plot

x

numeric. Default:0.75. x-axis of where to center the p-value.

y

numeric. Default:0.1. y-axis of where to center the p-value.

ym

numeric. Default: 0.02. y-axis of where to write the medium value of the correlation

textaxis

numeric. Default:15. Size of the text on the x-axis

titleaxis

numeric. Default:15. Size of the x-axis' title.

out

character string. Allows to pick the output. "DFtest" (default):

sep

character or character string. Default: '.'

remove.identity

boolean. Default:TRUE. Whether the cases where the same tissue from the first study and the second one should be removed.

reorder

boolean. Default: TRUE. Whether the data.frame should be order in decreasing order of the observed correlation

Value

depends on 'out'. Can be a data.frame, a plot, only the identical tissue comparisons, only the different tissue comparisons, ...


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