gt_graph: Graph

Description Usage Arguments Value Examples

View source: R/overhaul.R

Description

Graph

Usage

1

Arguments

gt

An object of class graphTweets as returned by gt_edges.

Value

An object of class igraph.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# simulate dataset
tweets <- data.frame(
  text = c("I tweet @you about @him", 
           "I tweet @me about @you"),
  screen_name = c("me", "him"),
  retweet_count = c(19, 5),
  status_id = c(1, 2),
  stringsAsFactors = FALSE
)

tweets %>% 
  gt_edges(text, screen_name, status_id) %>% 
  gt_nodes() %>% 
  gt_graph() -> net

graphTweets documentation built on April 1, 2018, 12:18 p.m.