Skip to content
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

Nodal attributes do not display on network plot on hover #77

Closed
martinamorris opened this issue Jul 24, 2020 · 5 comments
Closed

Nodal attributes do not display on network plot on hover #77

martinamorris opened this issue Jul 24, 2020 · 5 comments
Assignees

Comments

@martinamorris
Copy link
Member

can be reproduced using built-in net faux.mesa.high

@martinamorris martinamorris changed the title Nodal attributes do not display on hover Nodal attributes do not display on network plot on hover Jul 24, 2020
@netterie
Copy link

netterie commented Jul 25, 2020

Jeanette's replication of the problem

  • Installed R 4.0.2
  • Installed following packages using CRAN: shiny, ergm, sna, RColorBrewer, latticeExtra
  • Set working directory to statnetWeb/inst/shiny/statnetWeb
  • Launched with shiny::runApp()
  • In the Network Descriptives tab, an Interactive plot of faux.mesa.high makes the nodes BIGGER on hover but attribute name is not displayed:

image

  • In addition, before looking at the plot, just selecting faux.mesa.high gives this warning in the console:
    image

@martinamorris
Copy link
Member Author

Interesting, I don't get the node enlargement using Windows.

But I do get the warning/error in the console.

@netterie
Copy link

After browsing the code for a super long time, I realized that lines 1400 to 1418 specifically code the attributes to display UPON CLICK only when Interactive Plot is selected. Indeed, this works!

image

Whether or not coordinates could or should display on hover rather than click:

@martinamorris
Copy link
Member Author

Ok then, thanks for that. It works for me too when I select the interactive plot.

I didn't even notice that option, even though it was the very first choice up top...

Whether or not coordinates could or should display on hover rather than click

If by "coordinates" you mean nodal attributes, then display on click is fine. It might be helpful to come up some context specific help to let users know that when they switch to interactive plot that clicking the node brings up the attributes. Will file a (not urgent) issue for this specifically.

@netterie
Copy link

Great, I see the new issue you've opened. Yes, by "coordinates" I did actually mean nodal attributes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants