granny: Graph Annotation with Shiny.

Description Usage Arguments Examples

View source: R/granny.R

Description

A shiny gadget for graph annotation with shiny, or granny in short.

Usage

1
granny(graph)

Arguments

graph

An igraph object that is enhanced for visualisation with the gradget htmlwidget (x, y, and z coordinates, if applicable; additional edge and node data).

Examples

 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)

PolMine/polmineR.graph documentation built on April 27, 2020, 3:24 a.m.