cor_nwk: Plot a correlation diagram

Description Usage Arguments Author(s) Examples

View source: R/cor_nwk.R

Description

Summary diagram of the correlations between variables

Usage

1
2
3
cor_nwk(dat, labels = NA, phylo = NULL, method = "pearson",
  p.critic = 0.05, pval.adjust = NULL, order = TRUE, col = c(1,
  "grey50"), lty = c(1, 1))

Arguments

dat

a matrix or data.frame with variables in column.

labels

custom label vector in the same order than column names.

phylo

NULL or an object of class phylo representing the phylogeny (with branch lengths) to consider

method

method used for the correlation test. One of "pearson" (default), "kendall", or "spearman".

p.critic

Critical p.value under which a correlation line should be drawn

pval.adjust

method to adjust p-values in "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr".

order

logical to order variables according to a clustering method.

col

2 length vector of colour names for positive and negative correlation.

lty

2 length vector of line type for positive and negative correlation (see par for more details).

Author(s)

Jules Segrestin

Examples

1
2
data("mtcars")
cor_nwk(mtcars)

Rekyt/divr documentation built on April 1, 2020, 5:35 a.m.