R visNetwork: adding edge types and arrow placement
I need to produce a network graph where (A) some nodes are a subcategory of other nodes, (B) some nodes are considered equivalent to other nodes, and (C) some nodes are specifically highlighted as being especially distinct from other nodes. Edges showing relationship A might have a uni-directional arrow (i.e., an arrowhead at only one end of the edge). Edges showing relationship B might have bi-directional arrows (i.e., an arrowhead at each end of the edge), or might have no arrowheads at all. Edges showing relationship C might be shown in a distinct color, or might be dashed, or might have opposing arrowheads along the edge, etc. For the sake of argument, let’s say that for relationships of type B I wanted an arrowhead at each end of the relevant edge. How would I go about doing that with visNetwork
?
Display visnetwork magnified and in whole space of a shiny app
I create a large network inside a shiny
app but I dont like that is not displayed by default in the whole space and it looks very small. How can i make it be displayed in bigger width and height to make the nodes be easily seen? Now everything is too small.
Add edges that begin from network nodes and lead to nothing?
Can I add edges with arrows that begin from nodes 4 5 6 7 and lead to nothing? Just 4 straight lines.
Set the distance-in height-between the nodes of the same level in visNetwork?
Is it possible to set the distance between nodes of the same level(for example here the 4 last nodes of the 3rd level)? I want to be able to set the distance(height) between them. Probably that would work if we set the distance in height between all nodes in a network but in any case Im intersetd speicifally for the 3rd level. I don not care about being able to move them later manually.
Use visnetwork to recreate hierarchy tree
Im trying to use visNetwork package to recreate the hierarchical tree below as you can see it in the image but I cannot set the hierarchy for the positions.