View source: R/PlottingFunctions.R
PlotMatlabDtree | R Documentation |
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.
PlotMatlabDtree(edge_table, predecessors, outputdir = NULL, outputfile = NULL)
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 |
an igraph representation of the tree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.