Skip to content

Commit f014577

Browse files
committed
update visualization.rank(): add ... passed to geom_text_repel
1 parent 2a7c0d5 commit f014577

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

R/visualization.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ visualize.ma <- function(dataSet, M.thres = 1) {
448448
#' @param ht.textsize A numeric value (default = 2) specifying
449449
#' the font size of text labels for highlighted proteins.
450450
#'
451+
#' @param ... Optional arguments passed to \code{\link[ggrepel]{geom_text_repel}}.
452+
#'
451453
#' @return
452454
#' An object of class \code{ggplot}.
453455
#'
@@ -458,7 +460,7 @@ visualize.ma <- function(dataSet, M.thres = 1) {
458460
visualize.rank <- function(dataSet, listName = c(), regexName = c(), by = NULL,
459461
facet = c("Condition", "Replicate"),
460462
ht.color = "black", ht.shape = 17, ht.size = 1.5,
461-
ht.textcolor = "black", ht.textsize = 2) {
463+
ht.textcolor = "black", ht.textsize = 2, ...) {
462464

463465
information <- read.csv("preprocess_protein_information.csv", check.names = FALSE)
464466
scaffoldCheck <- "Visible?" %in% colnames(information)
@@ -528,7 +530,7 @@ visualize.rank <- function(dataSet, listName = c(), regexName = c(), by = NULL,
528530
geom_text_repel(data = subset(plotData, Type == "Highlight"),
529531
aes(label = Label),
530532
color = ht.textcolor, size = ht.textsize,
531-
show.legend = FALSE)
533+
show.legend = FALSE, ...)
532534
}
533535

534536
return(plot)

man/visualize.rank.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)