Skip to content

Commit

Permalink
Return matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ms609 committed Aug 22, 2024
1 parent ff99509 commit 7742ded
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 8 additions & 5 deletions R/VisualizeMatching.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
#' or `"none"`.
#' @param edge.width,edge.color,\dots Additional parameters to send to `Plot()`.
#'
#' @importFrom ape nodelabels edgelabels plot.phylo
#' @importFrom colorspace qualitative_hcl sequential_hcl
#' @importFrom graphics par
#' @importFrom TreeTools as.Splits
#' @returns `VisualizeMatching()` invisibly returns the matching of splits
#' between `tree1` and `tree2` (i.e.
#' `Func(tree1, tree2, reportMatching = TRUE)`)
#'
#' @examples
#' tree1 <- TreeTools::BalancedTree(6)
Expand All @@ -45,6 +44,10 @@
#' VisualizeMatching(SharedPhylogeneticInfo, tree1, tree2, matchZeros = FALSE)
#' @template MRS
#' @encoding UTF-8
#' @importFrom ape nodelabels edgelabels plot.phylo
#' @importFrom colorspace qualitative_hcl sequential_hcl
#' @importFrom graphics par
#' @importFrom TreeTools as.Splits
#' @export
VisualizeMatching <- function (Func, tree1, tree2, setPar = TRUE,
precision = 3L, Plot = plot.phylo,
Expand Down Expand Up @@ -208,5 +211,5 @@ VisualizeMatching <- function (Func, tree1, tree2, setPar = TRUE,
.LabelUnpaired(splitEdges2, !paired2)

# Return:
invisible()
invisible(matching)
}
5 changes: 5 additions & 0 deletions man/VisualizeMatching.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7742ded

Please sign in to comment.