aba_melt_2d: Convert an Allen Brain Atlas 2-d array to a data.frame

Description Usage Arguments Value

View source: R/aba.R

Description

Convert an Allen Brain Atlas 2-d array to a data.frame

Usage

1
aba_melt_2d(arr, val = "value", plane = "coronal")

Arguments

arr

a 2-d array to melt, like that generated by aba_slice_array()

val

The name of the value column to use.

plane

The plane of the 2-d array. Options are "coronal", "saggital", and "horizontal". Default is "coronal".

Value

a data.frame with dimension columns based on the plane, and a value column named for val.


hypercompetent/xstitch documentation built on July 22, 2019, 10:11 p.m.