show_ast: Generate a plot from graph with AST

Description Usage Arguments Value

View source: R/functions.R

Description

Generate a plot from graph with AST

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
show_ast(
  graph_dfs_tree,
  size_label = 5.5,
  alpha_label = 1,
  node_text_field = "id_alert",
  name_field = "name",
  show_label = TRUE,
  title = "",
  aspect = 1.3,
  nudge_x = 0,
  nudge_y = 0
)

Arguments

graph_dfs_tree

a graph contained in the output from calculate_features_from_versions

size_label

size of the label attached to the node

alpha_label

opacity of the label attached to the node

node_text_field

name of a column in the output from calculate_features_from_versions used in the label attached to the node

name_field

name of a column in the output from calculate_features_from_versions used inside the node

show_label

are the labels shown?

title

title of the plot

Value

a plot


crotman/kludgenudger documentation built on Oct. 19, 2021, 7:30 p.m.