Learn R Programming

discourseGT (version 1.2.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 = "", weightedGraph = TRUE)

Value

Stores the igraph graph object, graph adjacency matrix, edge and weight lists, project title, and a user option for weighted to list object.

Arguments

raw_data_input

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

project_title

The title of the project.

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.

Examples

Run this code
df <- sampleData1
prepNet <- tabulate_edges(df, silentNodes = 0)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1", weightedGraph = TRUE)

Run the code above in your browser using DataLab