R/minc_hierarchical_anatomy.R
hanatToVisGraph.Rd
Turns an anatomical tree into a nodes and edges for visNetwork plotting
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)
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 |
fontsize | The font size for |
levelSeparation | Spacing between hierarchical layers for |
list with nodes and edges data frames
hanatView
: Directly view the graph