compare.graphs: Graph Comparison

Description Usage Arguments Examples

View source: R/tools.R

Description

This function allows you to compare two graphs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
compare.graphs(
  learned,
  true,
  learned.replicates = NULL,
  skeleton = FALSE,
  arcs = FALSE,
  plot = TRUE,
  vertical.plot = TRUE,
  split.plot = TRUE
)

Arguments

learned

Learned graph or graph 1 (obj$average).

true

Ground truth graph or graph 2 (reference).

learned.replicates

List of learned replicates (obj$replicates) (optional). If provided, PR AUC will be calculated.

skeleton

Whether to compare graph skeletons instead of the graphs themself. Default: FALSE

arcs

Whether or not to list the arcs. Default: FALSE.

plot

Whether or not to plot the differences between the two graphs. Default: TRUE

vertical.plot

Whether to draw the comparison plots horizontally. Otherwise, they will be drawn horizontally. Default: TRUE

split.plot

Whether to split comparison plots. Otherwise, they will be drawn together. Default: TRUE

Examples

1
2
comparison <- compare.graphs(obj1, obj2, plot=TRUE)
comparison <- compare.graphs(obj1, obj2, plot=FALSE)

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.