addIonicons: Use Ionicons in visNetwork 'graph'

Description Usage Arguments Value Examples

Description

Add Ionicons for styling our graph with beautiful, professional icons. See Cheatsheet to get CSS content code. Can also use addFontAwesome

Usage

1
addIonicons(graph)

Arguments

graph

: a visNetwork object

Value

graph htmlwidget with Ionicons dependencies attached.

Examples

1
2
3
4
5
6
7
8
9
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()


Search within the visNetwork package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.