Learn R Programming

bingat (version 1.3)

graphNetworkPlot: Graph Network Plots

Description

This function plots the connections between nodes in a single subject.

Usage

graphNetworkPlot(data, type, main = "Network Plot", labels, groupCounts, groupLabels)

Arguments

data

A vector of a single graph.

type

The type of graph being used (adjmatrix or adjmatrixlt).

main

The title for the plot.

labels

A vector which contains the names for each node.

groupCounts

A vector which contains the number of nodes in each group of nodes.

groupLabels

A vector which contains the names for each group of nodes.

Value

A plot displaying the connections between the nodes.

Examples

Run this code
	data(braingraphs)
	
	main <- "Brain Connections"
	gc <- c(5, 5, 4, 6)
	gl <- c("Grp1", "Grp2", "Grp3", "Grp4")
	
	graphNetworkPlot(braingraphs[,1], "adjMatrix", main, groupCounts=gc, groupLabels=gl)

Run the code above in your browser using DataLab