hanatToVisGraph: Turns an anatomical tree into a nodes and edges for...

Description Usage Arguments Value Functions

View source: R/minc_hierarchical_anatomy.R

Description

Turns an anatomical tree into a nodes and edges for visNetwork plotting

Usage

1
2
3
4
5
6
7
hanatToVisGraph(hanatTree, colourVariable = "color_hex_triplet",
  colourScale = colorRampPalette(c("red", "yellow"))(255),
  rColourScale = colorRampPalette(c("blue", "turquoise1"))(255), low = NULL,
  high = NULL, symmetric = F, transparent = "#FDFDFD",
  edgeColourFromABI = F)

hanatView(..., fontsize = 14, levelSeparation = 500)

Arguments

hanatTree

The input anatomical tree

colourVariable

String containing the variable to colour nodes with

colourScale

Colour scale to use

rColourScale

Reverse colour scale to use if symmetric colours enabled

low

Lower cut-off for colour scale

high

Upper cut-off for colour scale

symmetric

Boolean for whether colour scale is symmetric

transparent

Colour to use for transparent nodes

edgeColourFromABI

Whether to set edge colours based on ABI atlas

...

Extra arguments to hanatToVisGraph from hanatView

fontsize

The font size for hanatView

levelSeparation

Spacing between hierarchical layers for hanatView

Value

list with nodes and edges data frames

Functions


Mouse-Imaging-Centre/RMINC documentation built on Oct. 5, 2018, 9:23 a.m.