| addIonicons | R Documentation |
graphAdd Ionicons for styling
our graph with beautiful, professional icons.
Can also use addFontAwesome
addIonicons(graph, name = "ionicons")
graph |
: a visNetwork object |
name |
: name of dependency |
graph htmlwidget with Ionicons dependencies attached.
nodes <- data.frame(id = 1:3, group = c("B", "A", "B"))
edges <- data.frame(from = c(1,2), to = c(2,3))
visNetwork(nodes, edges) %>%
visGroups(groupname = "A", shape = "icon",
icon = list(face ='Ionicons', code = "f101", size = 75)) %>%
visGroups(groupname = "B", shape = "icon",
icon = list(face ='Ionicons', code = "f100", color = "red")) %>%
addIonicons()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.