Learn R Programming

discourseGT (version 1.0.0)

prepareGraphs: Prepare Graphs

Description

Prepares the graphical object from the prepared edge and weight list data frame

Usage

prepareGraphs(
  raw_data_input,
  project_title = "",
  directedNet = TRUE,
  selfInteract = FALSE,
  weightedGraph = TRUE
)

Arguments

raw_data_input

The raw edge and weight list processed from the tabulate_edges() function.

project_title

The title of the project.

directedNet

Sets the graph to be directed. Edges will have a direction. Default is set to Directed. If undirected, edges have no direction

selfInteract

Removes self interactions in the graph (such as person 1 to person 1 interactions). Default removes self-interactions.

weightedGraph

Graph will add weights to the edges to a set of nodes based on the weight specified on the list. Default allows for weights on the graph.

Value

Stores the igraph graph object, graph adjacency matrix, edge and weight lists, project title, and user options for directed, self interactions, and weighted to list object.

Examples

Run this code
# NOT RUN {
df <- sampleData1
prepNet <- tabulate_edges(df, iscsvfile = FALSE)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1",
directedNet = TRUE, selfInteract = FALSE, weightedGraph = TRUE)

# }

Run the code above in your browser using DataLab