cor_facet: Correlation calculation function by group and plot...

View source: R/help_function.R

cor_facetR Documentation

Correlation calculation function by group and plot association heatmap - 20200915

Description

Correlation calculation function by group and plot association heatmap - 20200915

Usage

cor_facet(
  df,
  va,
  vb,
  facet,
  heatmap = FALSE,
  title = "",
  empty_row_delete = FALSE,
  flip = FALSE,
  keep_all = TRUE,
  col_low = "#4a7b94",
  col_high = "#bb5a39"
)

Arguments

df

exposure file merged with measures of interest

va

Column indexs of variables A in df

vb

Column indexs of variables B in df

facet

name of group variable

heatmap

specify whether plot association heatmap

title

Title for association heatmap

empty_row_delete

whether to delete rows without any significant correlation value

flip

whether to flip facet and x

keep_all

whether to show all facet

col_low

color for correlation r=-1

col_high

color for correlation r=1

Value

A table including correlation r,p,n between variables A and variables B during group variable and association heatmap (optional)


xinnyuY/EvoSig documentation built on July 22, 2022, 9:43 p.m.