Learn R Programming

neatmaps

Overview

The goal of the neatmaps package is to simplify the exploratory data analysis process for multiple network data sets with the help of heatmaps and consensus clustering. Multiple network data consists of multiple disjoint networks that share common variables. Ego network data sets are an example of such data sets. This package contains the necessary tools to prepare raw multiple network data for analysis, create a heatmap of the data, perform consensus clustering on the networks' variables and assess the stability of the variable clusters depicted in the heatmap.

Installation

# To install neatmaps, simply run the following code:
install.packages('neatmaps')

Code Example

Below is an example of how to use the key functions in the neatmaps package. Run this code locally to produce the plots.

First, load the package, create a data frame with the data provided in the package and then run the neatmap function.

library(neatmaps)

df <- netsDataFrame(network_attr_df,
                    node_attr_df,
                    edge_df)

neat_res <- neatmap(df, scale_df = "ecdf", max_k = 3, reps = 100, 
                    xlab = "vars", ylab = "nets", xlab_cex = 1, ylab_cex = 1)

Next, plot the heatmap stored in neat_res.

neat_res$heatmap

Finally, the results of the consensus clustering are visualized to identify the stable clusters of variables in the heatmap. The consensus matrices are presented first, followed by the ECDFs of the consensus matrices and finally the relative change in ECDF of consecutive iterations of the consensus clustering algorithm.

consensusMap(neat_res)

consensusECDF(neat_res)

consensusChangeECDF(neat_res)

Documentation

Available on CRAN.

Copy Link

Version

Install

install.packages('neatmaps')

Monthly Downloads

225

Version

2.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Philippe Boileau

Last Published

May 12th, 2019

Functions in neatmaps (2.1.0)

createNetworks

Create Networks Using Edge Data Frame
consClustResTable

Consensus Cluster Results in a Table
edge_df

Edge List Data Frame
consensusChangeECDF

Change in Area Under the ECDF
aggNodeAttr

Node Attribute Aggregater
getStructureAttr

Structural Attributes of Networks Data Frame
calcICLNoPlots

Consensus Cluster Plus without Plots
network_attr_df

Network Attributes Data
node_attr_df

Node Attribute Data
hierarchy

Hierarchy
neatmap

Explore Multi-Network Data
consensusClusterNoPlots

Consensus Cluster Plus without Plots
consensusECDF

Consensus Matrix ECDFs
neatmaps

neatmaps package
netsDataFrame

Networks Data Frame
scaleColumns

Scale Between 0 and 1
consensusMap

Create Heatmaps of Consensus Matrices