R/graphTweets.R

#' \pkg{graphTweets} visualise Twitter Interactions.
#'  
#' @section Functions:
#' \itemize{
#' \item \code{\link{gt_edges}} - get edges from tweets
#' \item \code{\link{gt_nodes}} - add meta-data to vertices
#' \item \code{\link{gt_co_edges}} - Co mentions networks
#' \item \code{\link{gt_dyn}} - create dynamic graphs
#' \item \code{\link{gt_collect}} - collect edges and nodes
#' \item \code{\link{gt_graph}} - create graph
#' \item \code{\link{gt_save}} - save graph to file
#' }
#' 
#' @keywords internal
#' 
#' @examples 
#' \dontrun{
#' library(rtweet)
#' 
#' tweets <- search_tweets("#rstats")
#' 
#' library(graphTweets)
#' 
#' # simple network
#' tweets %>% 
#'   gt_edges(screen_name, mentions_screen_name) %>% # get edges
#'   gt_nodes %>% # get nodes
#'   gt_graph %>% # build igraph object
#'   plot(.)
#' }
#' 
#' @importFrom rlang :=
#' @importFrom dplyr n
#' @name graphTweets
#' @docType package
NULL
JohnCoene/graphTweets documentation built on Jan. 8, 2020, 2:48 a.m.