-Is it possible to change the automatically attributed cluster names on the enrichmentNetwork plot? Even though it's a ggplot object, I couldn't find a way to manually change what is displayed in the plot. Here's my attempt:
network_data <- enrichmentNetwork(ego_005@result,
verbose = T,
drawEllipses = TRUE,
fontSize = 2.5,
colorType = "pval",
clustNameMethod = "pagerank",
minClusterSize = 5,
outerCutoff = 0.2)
network_data$plot_env$dt$Cluster[network_data$plot_env$dt$Cluster == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
network_data$plot_env$coordinates$Cluster[network_data$plot_env$coordinates$Cluster == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
network_data$plot_env$clust[network_data$plot_env$clust == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
- None of these approaches work, despite the changes being applied to the object. It's still displayed as "cell cycle DNA replication" in the plot.
Best regards,
Carlos
-Is it possible to change the automatically attributed cluster names on the enrichmentNetwork plot? Even though it's a ggplot object, I couldn't find a way to manually change what is displayed in the plot. Here's my attempt:
network_data <- enrichmentNetwork(ego_005@result,
verbose = T,
drawEllipses = TRUE,
fontSize = 2.5,
colorType = "pval",
clustNameMethod = "pagerank",
minClusterSize = 5,
outerCutoff = 0.2)
network_data$plot_env$dt$Cluster[network_data$plot_env$dt$Cluster == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
network_data$plot_env$coordinates$Cluster[network_data$plot_env$coordinates$Cluster == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
network_data$plot_env$clust[network_data$plot_env$clust == "cell cycle DNA replication"] <- "DNA-templated DNA replication"
Best regards,
Carlos