plot_clusters function

plot_clusters

plot_clusters

Plot clusters

plot_clusters( cluster_results, node_colours = "#fdae61", scale_entropy = FALSE, directed = TRUE )

Arguments

  • cluster_results: Cluster results
  • node_colours: node colours
  • scale_entropy: if true, entropy measure will be used to determine size of the nodes
  • directed: TRUE if nodes should be directed

Returns

A summary plot of all cluster networks of class c("gg", "ggplot", "ggarrange").

Examples

# 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)
  • Maintainer: Fritz Bayer
  • License: GPL-3
  • Last published: 2024-02-14

Useful links