briatte / ggnet

Network visualization with ggplot2
https://briatte.github.io/ggnet/
194 stars 33 forks source link

hover text #48

Open kegiles opened 10 months ago

kegiles commented 10 months ago

I am finding it incredibly difficult to customize the hover text information when combining ggnet2 with ggplotly. I was able to use the 'text' parameter and then add custom text as follows: ggplotly(p,hoverinfo='text') %>% style(hovertext = 'specialty') I can add a list to the hovertext parameter, but it only takes the first element in the list. I can specify any element in the list (list[x]) and it will move to the xth element in the list, which tells me that the package is reading in the list. I'm fairly certain that the length of the list is equal to the number of nodes in the graph. Any help would be appreciated.