View source: R/help_function.R
cor_facet | R Documentation |
Correlation calculation function by group and plot association heatmap - 20200915
cor_facet( df, va, vb, facet, heatmap = FALSE, title = "", empty_row_delete = FALSE, flip = FALSE, keep_all = TRUE, col_low = "#4a7b94", col_high = "#bb5a39" )
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 |
A table including correlation r,p,n between variables A and variables B during group variable and association heatmap (optional)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.