Description Usage Arguments Examples
A shiny gadget for graph annotation with shiny, or granny in short.
1 | granny(graph)
|
graph |
An |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(magrittr)
library(polmineR)
library(pbapply)
library(igraph)
use("GermaParl")
G <- merkel2008 %>%
igraph_add_coordinates(layout = "kamada.kawai", dim = 3) %>%
igraph_add_communities() %>%
rescale(-250, 250)
am2008 <- partition(
"GERMAPARL",
speaker = "Angela Merkel", year = 2008, interjection = FALSE,
p_attribute = "word"
)
G <- igraph_add_kwic(G, subcorpus = am2008)
if (interactive()) G <- granny(G)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.