-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potpourri of graph viz and other improvements #143
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great Jay!! These are really good changes. I love the dropdown to focus on one node.
I have two recommendations:
- don't export that igraph thing, just make it a part of documentation / messages
- you need to update vignettes/pkgnet-intro.Rmd to be sure it's consistent with the new directionality
f73dc49
to
8ea9c24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayqi This is an excellent PR. I love the viz changes, especially the node selection and functional layout changes. The vignette and pkgdown changes render well, but I have some questions on the content before publish.
Oh @jayqi , and you missed a little edit right here: https://github.com/UptakeOpenSource/pkgnet/blob/master/DESCRIPTION#L9 :) |
a33c396
to
f9d3947
Compare
7b69e4e
to
c7579cc
Compare
Codecov Report
@@ Coverage Diff @@
## master #143 +/- ##
==========================================
- Coverage 86.62% 84.59% -2.03%
==========================================
Files 10 10
Lines 897 909 +12
==========================================
- Hits 777 769 -8
- Misses 120 140 +20
Continue to review full report at Codecov.
|
@bburns632 can you take another look at this? I think it's ready to go. |
Yes. Will review again tomorrow.
…On Mon, Dec 10, 2018, 8:59 PM James Lamb ***@***.*** wrote:
@bburns632 <https://github.com/bburns632> can you take another look at
this? I think it's ready to go.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXZRyyLFS3GjnJ-eUpIR8jJ_gJqzIAeGks5u3x-FgaJpZM4Y_77j>
.
|
@jayqi excellent edits in the vignette. Thank you for going through the extra trouble there. Great PR. |
@bburns632 @jayqi I re-reviewed. Looks great! I re-read the vignette (per @bburns632 's request)...I agree with the recent change. "dependency"-"dependent" language is much clearer than what we had before. fatntastic job |
Lots of changes, but I think they make the reports a lot more user-friendly.
Graph viz
visnetwork::visGroups
functionality, preventing other things from using it. Closes node clustering feature has been dropped accidentally #102 as it is no longer #relevant.AbstractGraphReporter
to usevisNetwork::visIgraphLayout
instead of separately explicitly using igraph to compute a layout and passing coordinates to visNetwork. The new implementation is simpler and doesn't require hard-coded aliases to available layouts.New functionigraphAvailableLayouts
returns available igraph layout options.AbstractGraphReporter
to the specific reporters:AbstractGraphReporter
defaults tolayout_nicely
withoutvisHierarchicalLayout
DependencyReporter
andInheritanceReporter
defaults tolayout_as_tree
andvisHierarchicalLayout
FunctionReporter
defaults tolayout_with_graphopt
withoutvisHierarchicalLayout
. This seems to work well for large, highly interconnected graphs like function networks tend to be.InheritanceReporter
will now default to coloring nodes by class typeMisc
DependencyReporter
andFunctionReporter
to have convention dependent -> independent. This is how dependency works in UML. Closes Revisiting the directionality of edges (Nov 2018) #131.InheritanceReporter
errors out if there are parent classes external to the package.