Skip to content

Commit

Permalink
added example use of plotspa as a comment
Browse files Browse the repository at this point in the history
jvendries committed Mar 19, 2024
1 parent 927c30b commit a9bf2a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/SPAFunctions.R
Original file line number Diff line number Diff line change
@@ -189,6 +189,12 @@ importSPAFromCSV <- function(filename) {
#' simpleNetwork, dendogram, radial
plotSPA <- function(spa_node_data, subtree_to_plot = NULL, plot_type = "simpleNetwork") {

# #Example use:
# filename <- "../useeior/work/SPA_testing/SPA_results/255_paints/SPA_result_255.csv"
# spa_node_data <- importSPAFromCSV(filename)
# plotSPA(spa_node_data, subtree_to_plot = "244", plot_type = "sankey")


# Load required libraries
library(networkD3)
library(data.tree)

0 comments on commit a9bf2a8

Please sign in to comment.