Learn R Programming

discourseGT (version 1.0.0)

graphicalPlot: Plot Graphs

Description

Plots the graph using the base plot function. To map attributes on the graph use the plotGraphs functions, 1 attribute with `plotGraphs` or 2 attributes with `plotGraphs2`.

Usage

graphicalPlot(ginp, graph_selection_input = 0, curvedEdgeLines = TRUE)

Arguments

ginp

The prepared graph object from prepareGraphs function

graph_selection_input

The type of graphical projection to be used. Default projection is 0 (Fruchterman Reingold). Selection must be a numeric option from 0-3. Other options include: 1 = Kamada Kawai, 2 = Reingold Tilford, and 3 = Bipartite

curvedEdgeLines

Whether the edges between nodes should be curved or straight. Default is curved lines.

Value

Returns graphical plot to disk, if selected, or to R console

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)

#Plot the graph
graphicalPlot(baseNet)


# }

Run the code above in your browser using DataLab