convert_mat_df: Convert connectome matrix data to long form tidy data

Description Usage Arguments Examples

View source: R/convert_mat_df.R

Description

Converts connectome matrix data type (e.g. from Matlab or Numpy) to ggplot2-friendly format for use with geom_tile(). Assumes rownames and colnames exist and are the ROI labels.

Usage

1

Arguments

mat

Matrix data to convert

Examples

1
foo <- convert_mat_df(matrix(data=rnorm(n=25), nrow=5, ncol=5))

zmorrissey/commonR documentation built on Sept. 15, 2021, 2:12 p.m.