Network Visualizations - #58
Draft
GWMcElfresh wants to merge 4 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO on fleshing this out, but the primary goals are to extend this package into network visualizations and analysis.
Example visualization:

This network establishes a graph where we can care primarily about two quantities:
To that end, this now supports on-the-fly network construction via something like this (for the above network):
and then a modeling suite for connectivity vs distances like so:
This modeling result will compute the connectivity and the distance results and store them, so they can be accessed by visualization functions. The models are either
estimand = effectsorestimand = means, which equates to either a contrast across values or the values ofgroupColumnthemselves.For instance, for
estimand = effectswe contrast and plot like so:but if we run with
estimand = 'means':Specifically for the conditional connectivity probabilities, this function subsets unpaired nodes (e.g. clones with high distance from all other clones). So, by passing
showUnpaired = TRUE, we recover those probabilities in a facet.