Skip to content

Commit

Permalink
add carrow()
Browse files Browse the repository at this point in the history
convenient function to plot closed type arrow
  • Loading branch information
noriakis committed Sep 28, 2023
1 parent b3b0840 commit 5e7a171
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ S3method(ggplot_add,overlay_raw_map)
export(append_cp)
export(append_label_position)
export(assign_deseq2)
export(carrow)
export(combine_with_bnlearn)
export(convert_id)
export(create_test_module)
Expand Down
12 changes: 11 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,17 @@ obtain_map_and_cache <- function(org, pid=NULL, colon=TRUE) {
convert_vec
}


#' carrow
#'
#' make closed type arrow
#' @param length arrow length in unit()
#' @export
#' @examples
#' carrow()
#'
carrow <- function(length=unit(2,"mm")) {
arrow(length=length, type="closed")
}

#' combine_with_bnlearn
#'
Expand Down
18 changes: 18 additions & 0 deletions man/carrow.Rd

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

0 comments on commit 5e7a171

Please sign in to comment.