christophergandrud / christophergandrud/networkD3

bug in rendering forceNetwork when arrows = TRUE and Value = NULL

Open
#212 8 comments 0 reactions 0 assignees View on GitHub
bug forceNetwork
Dominant language
R
Stars
659
Forks
259
PR merge metrics
No merged PRs in 30d

Description

Hi!

I'm trying to create a simple network graph with directed arrows and I only get a strange result back.

Code attached, and resulting graph is shown here:
![image](https://user-images.githubusercontent.com/1709034/29684576-cc9d610a-8912-11e7-8140-670e75a48244.png)

```
library(networkD3)
source <- c(0,0,1,1)
target <- c(1,2,2,3)
name <- c('zero','one','two','three')
group <- c('Group 1','Group 1','Group 2','Group 2')

links <- data.frame(source,target)
nodes <- data.frame(name,group)

forceNetwork(Links = links, Nodes = nodes,
Source = "source", Target = "target",
NodeID = "name", Group = "group",
linkDistance = 100, zoom = TRUE,
fontSize = 14, opacity = 0.8, legend = T, arrows = T)

```

version 0.4 downloaded using install.packages("networkD3") in RStudio.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.