ggcortree: Visualize a Correlation Matrix with an Hierarchical Tree...

Description Usage Arguments Author(s)

View source: R/ggcortree.R

Description

Visualize a Correlation Matrix with an Hierarchical Tree using ggplot2

Usage

1
2
3
4
5
6
7
8
9
ggcortree(
  x,
  y = NULL,
  k = NULL,
  circular = F,
  nudge = 0.05,
  expand = 0.2,
  label.size = 3.5
)

Arguments

x

a matrix of pairwise correlation among features

y

vector of correlation of the features represented in x with a target quantity. Default is NULL which means that this information is not exploited. If y is supplied it is used to reorder the hierarchical tree under the constrains of its structure.

k

an integer. Number of cluster to cut the tree into. Default is NULL. k is estimate as the minimal number of clusters the would result in an isolated feature.

circular

should the tree be represent in polar coordinates? Default F

nudge

a numeric. Displacement factor of the labels. Aesthetics purpose.

expand

a numeric. Expansion of the y-axis. Aesthetics purpose.

label.size

a numeric. Size of the terminal nodes of the tree labels.

Author(s)

David Senhora Navega


dsnavega/cbfsr documentation built on Jan. 1, 2021, 12:07 a.m.