basicPlot {discourseGT} R Documentation

## Plot Graphs

### Description

Plots the graph using the base plot function. To map attributes on the graph use 'plot1Att' for 1 attribute or 'plot2Att' for 2 attributes.

### Usage

basicPlot(
ginp,
graph_selection_input = 0,
curvedEdgeLines = TRUE,
arrowSizeMultiplier = 1,
scaledEdgeLines = FALSE,
scaledMin = NULL,
scaledMax = 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. arrowSizeMultiplier Adjusts the default arrow size based on a multiplier. Default value is 1. scaledEdgeLines Whether or not the edges of the graph should be scaled scaledMin If scaledEdgeLines = TRUE, then what the lightest weight should be scaled to scaledMax If scaledEdgeLines = TRUE, then what the heaviest weight should be scaled to

### Value

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

### Examples


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

#Plot the graph
basicPlot(baseNet)



[Package discourseGT version 1.1.8 Index]