I am trying to create a network graph of nodes with labels that contain multiple lines. The lines should have different font size and style to convey information, much like what can be accomplished in a mouseover tooltip, but in this case the text should be displayed all the time. My use case is to show how servers relate to each other while displaying basic information about each server. Ideally I would style the labels using HTML/CSS.
I've looked at the visNetwork and diagrammeR packages but I only see how to do a single line node label.
I want my nodes to display information like:
System 1 Location: Server Room 1 Description: RShiny Server Users: Analytics Group
Server 2 Location: Server Room 2 Description: Mail Server Users: All Staff
Is r2d3 another possibility? Pointers to an online example (with code) or other example code would be very helpful.
Well, the kludge is to identify your nodes simply, and then overplot using ggrep, ggplot and similar tools, inserting a newline.
The next kludge is to label the notes in Illustrator, which will give you full control over line breaks, typography and color. Depends on how often you do this.
hbrthemes has a lot of options, but it's not full css. Solutions similar to the SO are probably going to end up as time consuming as handwork in Illustrator.
Your solution depends on the number of nodes and how often they change.
There will be a large number of nodes, and the idea is to use a data-driven approach for updates rather than the current manual process using PowerPoint. I would also like to have multiple versions of the chart where displayed details change based on the audience.
Perhaps an organization chart in diagrammeR could be adapted to this purpose? I will continue to look further.