PlotMatlabDtree: Produce a plot of matlab DTree data and return the object

View source: R/PlottingFunctions.R

PlotMatlabDtreeR Documentation

Produce a plot of matlab DTree data and return the object

Description

If an output dir and filename are provided, a plot will be saved, otherwise the function will just return the graph. This is used for internal analysis to compare with matlab implementation.

Usage

PlotMatlabDtree(edge_table, predecessors, outputdir = NULL, outputfile = NULL)

Arguments

edge_table

a numeric matrix whose rows are directed edges of a tree: col 1 is v1, col2 is v2, col3 is weight

predecessors

a vector of tree predecessors such that pred[i] = the predecessor of i

outputdir

the output directory, relative to getwd()

outputfile

the output file

Value

an igraph representation of the tree


mkarikom/RSoptSC documentation built on May 10, 2023, 1:10 a.m.