plot: plot correlation matrix by ggplot

Description Usage Arguments Value Examples

Description

plot correlation matrix by ggplot

plot hierachical tree for clustering data by ggplot

Usage

1
2
3
4
5
## S3 method for class 'corr'
plot(x, y = NULL, cutoff = 0.8, ...)

## S3 method for class 'dendro'
plot(x, ..., rotate = FALSE, labels = TRUE)

Arguments

x

n x n correlation matrix

y

NULL

cutoff

correlation cutoff; Default = 0.8

...

ignored argument

rotate

if TRUE, rotate tree by 90 degree; Default FALSE

labels

if TRUE, show segment labels

x

dendro class object

Value

ggplot object

Examples

1
2
3
4
corrmat <- list(cor = matrix(c(-0.9,-0.6,0.3,1), nrow = 2))
colnames(corrmat$cor) <- rownames(corrmat$cor) <- c("X1","X2")
class(corrmat) <- "corr"
plot(corrmat)

xinchoubiology/Rcppsva documentation built on May 4, 2019, 1:06 p.m.