plot_clusters
Plot clusters
plot_clusters( cluster_results, node_colours = "#fdae61", scale_entropy = FALSE, directed = TRUE )
cluster_results
: Cluster resultsnode_colours
: node coloursscale_entropy
: if true, entropy measure will be used to determine size of the nodesdirected
: TRUE if nodes should be directedA summary plot of all cluster networks of class c("gg", "ggplot", "ggarrange").
# Simulate data sampled_data <- sampleData(n_vars = 15, n_bg = 0)$sampled_data # learn clusters cluster_results <- get_clusters(sampled_data) # Load additional pacakges to visualize the networks library(ggplot2) library(ggraph) library(igraph) library(ggpubr) # Visualize networks plot_clusters(cluster_results)
Useful links