Consider the following network, can nodes be bordered with colors based on a column from the MisNodes data frame using the forceNetwork
function in networkd3. It has an option to color the edges but not the node borders.
library(networkD3)
# Load data
data(MisLinks)
data(MisNodes)
# Plot
forceNetwork(Links = MisLinks, Nodes = MisNodes,
Source = "source", Target = "target",
Value = "value", NodeID = "name",
Group = "group", opacity = 0.8)