plot.cor.clusts: Plots clusters on a heatmap ofa correlation matrix

Description Usage Arguments Note Examples

Description

Given a correlation matrix and a vector of cluster assignments, plots squares around clusters of at least 2 sites.

Usage

1
plot.cor.clusts(cor.mat, clusts, erase.non.clust = F, lwd = 2, main = "", xlab = "", labels = NULL)

Arguments

cor.mat

An (m by m) correlation matrix

clusts

An $m$ vector of clusters assignments, as output by Acluster function.

erase.non.clust

If TRUE, do not present correlations between sites that are not in the same cluster (i.e. they are just white). Default is FALSE.

lwd

The width of the lines marking the clusters

main

Main title of the plot

xlab

Label of the X-axis

labels

Labels of the sites

Note

A plot is shown

Examples

1
2
3
4
5
6
7
data(betas.7)
data(annot.7)
dat.7.ord <- order.betas.by.chrom.location(betas.7, annot = annot.7)
cluster.vec <- Acluster(ordr.vec = dat.7.ord$betas.by.chrom[[1]], thresh.dist = 0.5, location.vec = dat.7.ord$sites.locations.by.chrom[[1]]$Coordinate_37, max.dist = 1000, type = "single")

c.mat <- cor(t(betas.7)[,1:15], method = "spearman")
plot.cor.clusts(cor.mat = c.mat, clusts  = cluster.vec[1:15])

ftyu1234/Aclust documentation built on May 16, 2019, 3:37 p.m.