graphicalPlot: Plot Graphs

Description Usage Arguments Value Examples

View source: R/graphicalPlot.R

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

1
2
3
4
5
6
7
graphicalPlot(
  ginp,
  graph_selection_input = 0,
  curvedEdgeLines = TRUE,
  logScale = FALSE,
  logBase = NULL
)

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-2. Other options include: 1 = Kamada Kawai, 2 = Reingold Tilford

curvedEdgeLines

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

logScale

Whether or not the edges of the graph should be scaled down based on a logarithmic scale

logBase

If logScale = TRUE, then what logarithmic base should be applied to the graph's edges

Value

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

Examples

1
2
3
4
5
6
df <- sampleData1
prepNet <- tabulate_edges(df, iscsvfile = FALSE, silentNodes = 0)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1", weightedGraph = TRUE)

#Plot the graph
graphicalPlot(baseNet)

discourseGT documentation built on Oct. 23, 2020, 8:11 p.m.