Learn R Programming

NIMAA (version 0.2.1)

plotBipartiteInteractive: 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.

Value

An visNetwork object for interactive figure.

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.

See Also

visNetwork

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab