Learn R Programming

somspace (version 1.0.0)

cnet: Complex network analysis

Description

cnet plots the canonical network map of a single classification scheme.

Usage

cnet(x, n, thres)

Arguments

x

regs object.

n

number of regions.

thres

the cross-correlation threshold of the network.

Details

The cnet function estimates the cross-correlation matrix of the average time series of each region and plots a map linking the regions with cross-correlations above the selected threshold.

Examples

Run this code
# NOT RUN {
dummy <- owda[Time <= 1600] #toy example
inp_som <- sominp(dummy)
my_som <- somspa(inp_som, rlen = 100, grid = somgrid(3, 3, "hexagonal"))
my_regions <- somregs(my_som, nregions = 6) 
cnet(my_regions, n = 5, thres = 0.2)
# }
# NOT RUN {
inp_som <- sominp(owda)
my_som <- somspa(inp_som, rlen = 1000, grid = somgrid(6, 6, "hexagonal"))
my_regions <- somregs(my_som, nregions = 15) 
cnet(my_regions, n = 12, thres = 0.3)
# }

Run the code above in your browser using DataLab