Description Usage Arguments Value Examples
Replaces node IDs with their labels.
1 | nodeindex(langnet, wordlist)
|
langnet |
An igraph object created using the |
wordlist |
A list of words. Must be a character vector. |
An igraph object of the language network with updated labels.
1 2 3 4 5 6 7 | somewords <- c('cat', 'bat', 'cap', 'cape')
somewordsnet <- tolangnet(somewords)
plot(somewordsnet) #plots the graph
somewordsnet.labelled <- nodeindex(somewordsnet, somewords)
plot(somewordsnet.labelled) #notice that this network has labels...
# note that the generated IDs are dependent on the ordering in the \code{wordlist}.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.