Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addIonicons

Use Ionicons in visNetwork graph


Description

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

Usage

addIonicons(graph, name = "ionicons")

Arguments

graph

: a visNetwork object

name

: name of dependency

Value

graph htmlwidget with Ionicons dependencies attached.

Examples

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()

visNetwork

Network Visualization using 'vis.js' Library

v2.0.9
MIT + file LICENSE
Authors
Almende B.V. [aut, cph] (vis.js library in htmlwidgets/lib, http://visjs.org, http://www.almende.com/home), Benoit Thieurmel [aut, cre] (R interface), Titouan Robert [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.