plot_corr_mat: Plot a correlation matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot_corr_mat.R

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

1
2
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

Author(s)

Christopher G. Watson, [email protected]

See Also

geom_tile

Examples

1
2
3
4
5
## Not run: 
matplot1 <- plot_corr_mat(corrs[[1]]$r.thresh[, , N], g=g[[1]][[N]],
                          group=groups[1])

## End(Not run)

brainGraph documentation built on May 29, 2018, 9:03 a.m.