CorrelationHeatmapTwoDfMantelTest: Perform correlation analysis between two data.frame

View source: R/Immune.R

CorrelationHeatmapTwoDfMantelTestR Documentation

Perform correlation analysis between two data.frame

Description

Perform correlation analysis between two data.frame

Usage

CorrelationHeatmapTwoDfMantelTest(
  x.axis.df,
  y.axis.df,
  cor.method = "spearman",
  spec.select.list = NULL,
  rho.cutoff = 0.3,
  p.color = c("#D95F02", "#CCCCCC99", "#1B9E77")
)

Arguments

x.axis.df

Row is sample, column variable will be point names.

y.axis.df

Row is sample, column variable will be names in new correlation heatmap.

cor.method

Defaut spearman

spec.select.list

list(group1 = c(1,2,3), grou2 = c(4,5)) numbers are col indexin x.axis.df

rho.cutoff

Default 0.3

p.color

c("#D95F02", "#CCCCCC99", "#1B9E77")

Value

A ggplot2 object

Examples


library(vegan)
data(varespec)
data(varechem)

loonR::CorrelationHeatmapTwoDfMantelTest(varespec[,c(1,2)], varechem)

l = list(Community_Diversity= 1:5, Community_structure =6:14)
loonR::CorrelationHeatmapTwoDfMantelTest(varespec, varechem, spec.select.list = l)


ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.