Learn R Programming

brainGraph (version 2.7.3)

plot_corr_mat: Plot a correlation matrix

Description

This function will plot a correlation matrix in the form of a ``heatmap''. You have the choice to plot the vertices in an order based on either community or lobe membership, and they will be colored accordingly.

Usage

plot_corr_mat(corrs, ordered = TRUE, type = c("comm", "comm.wt",
  "lobe", "network"), g = NULL, group = NULL)

Arguments

corrs

The correlation matrix

ordered

A logical indicating whether or not to order vertices (default:TRUE)

type

Character string, one of: 'comm', 'comm.wt', 'lobe', or 'network'

g

An igraph graph object; not required if ordered is FALSE

group

A character vector of the group name (default: NULL)

Value

A ggplot object

See Also

geom_tile

Examples

Run this code
# NOT RUN {
matplot1 <- plot_corr_mat(corrs[[1]]$r.thresh[, , N], g=g[[1]][[N]],
                          group=groups[1])
# }

Run the code above in your browser using DataLab