plotBipartiteInteractive: Use the incidence matrix to plot an interactive bipartite...

View source: R/plot-original-bipartite-interactive.R

plotBipartiteInteractiveR Documentation

Use the incidence matrix to plot an interactive bipartite network

Description

This function converts the input incidence matrix into a bipartite network, and generates a customized interactive bipartite network visualization.

Usage

plotBipartiteInteractive(inc_mat)

Arguments

inc_mat

A matrix, the incidence matrix of bipartite network.

Details

This function creates customized interactive visualization for bipartite networks. The user can enter a simple incidence matrix to generate a dynamic network with a bipartite network layout, in which two parts use different colors and shapes to represent nodes. This function relies on the visNetwork package.

Value

An visNetwork object for interactive figure.

See Also

visNetwork

Examples

# load part of the beatAML data
beatAML_data <- NIMAA::beatAML[1:10000,]

# convert to incidence matrix
beatAML_incidence_matrix <- nominalAsBinet(beatAML_data)

# plot with the interactive bipartite network

plotBipartiteInteractive(inc_mat = beatAML_incidence_matrix)

jafarilab/NIMAA documentation built on July 29, 2023, 5:36 a.m.