plot_network | R Documentation |
With plot_network
an automated function is provided to visualize the network generated by
turboGliph
or gliph2
with the package visNetwork.
plot_network( clustering_output = NULL, result_folder = "", show_additional_columns = NULL, color_info = "total.score", color_palette = viridis::viridis, local_edge_color = "orange", global_edge_color = "#68bceb", size_info = NULL, absolute_size = FALSE, cluster_min_size = 3, n_cores = 1 )
clustering_output |
list. By default |
result_folder |
character. By default |
show_additional_columns |
character vector. By default |
color_info |
character. By default
|
color_palette |
function. This function specifies the color palette for node coloring. By default, the viridis-palette is used. The function
has to expect a number |
local_edge_color |
color. By default |
global_edge_color |
color. By default |
size_info |
character. By default |
absolute_size |
logical. By default |
cluster_min_size |
numeric. By default 3. Minimal size of a cluster required to be considered for plotting. |
n_cores |
numeric. Number of cores to use, by default 1. In case of |
plot_network
returns an object of class 'visNetwork' which visualizes the network from the results of turboGliph
or gliph2
. The resulting graph
is interactive. Scrolling zooms, hovering over a node displays additional information about that node, and
clicking on a node highlights all direct neighbors. The color and size of the nodes can be adjusted with the parameters.
For details, see the parameter information.
utils::data("gliph_input_data") res <- turbo_gliph(cdr3_sequences = gliph_input_data[base::seq_len(200),], sim_depth = 100, n_cores = 1) plot_network(clustering_output = res, n_cores = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.