I have been trying to learn R to work on some network analysis. I found the networkD3 package and ran their example code (below) to get acquainted. It would switch to the "Viewer" tab on the right side of the console, but it would appear blank. If I used the "Export -> Save As Web Page..." then I could open that saved html document in my browser and see what I expected to see.
I've tried a couple other things I think would open in that Viewer pane but it launches a tab in my browser. I've even tried the rstudio::viewer("document.html") approach and it still goes to my browser. Any ideas?
# Create fake data
src <- c("A", "A", "A", "A", "B", "B", "C", "C", "D")
target <- c("B", "C", "D", "J", "E", "F", "G", "H", "I")
networkData <- data.frame(src, target)
# Plot
simpleNetwork(networkData)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…