Learn R Programming

brainGraph (version 0.55.0)

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", "lobe"), g = NULL,
  group = NULL)

Arguments

corrs
The correlation matrix
ordered
A logical indicating whether or not to order vertices (default:TRUE)
type
Character string, either 'comm' or 'lobe'
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
matplot1 <- plot_corr_mat(corrs[[1]][[N]]$r.thresh, g=g[[1]][[N]],
                           group=groups[1])

Run the code above in your browser using DataLab