View source: R/plot-original-bipartite-interactive.R
plotBipartiteInteractive | R Documentation |
This function converts the input incidence matrix into a bipartite network, and generates a customized interactive bipartite network visualization.
plotBipartiteInteractive(inc_mat)
inc_mat |
A matrix, the incidence matrix of bipartite network. |
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.
An visNetwork object for interactive figure.
visNetwork
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.