Hi,
I create a nodes_links function that generate the nodes and links dataframe for using with sankeynetwork.
You just have to run the function on your initial dataset, precising the factor variables of interest. It generates locally the nodes and links dataframes that you can directly use in the sankeyNetwork.
The function could surely be improved but is still very convenient.
Thanks for the effort and interest. There are a few problems here...
the build is failing with this PR
it adds a dependency on dplyr (and therefore all of its dependencies), which would be better to avoid
the function and example cause an error on my machine, possibly because I have a newer version dplyr/tidyselect:
Note: Using an external vector in selections is ambiguous.
ℹ Use all_of(variables) instead of variables to silence this message.
ℹ See https://tidyselect.r-lib.org/reference/faq-external-vector.html.
this function seems to be very specific to a certain type of data... I'm not sure it has general enough utility
Hi, I create a nodes_links function that generate the nodes and links dataframe for using with sankeynetwork. You just have to run the function on your initial dataset, precising the factor variables of interest. It generates locally the nodes and links dataframes that you can directly use in the sankeyNetwork. The function could surely be improved but is still very convenient.