Skip to content

Commit 24a0709

Browse files
committed
update visualize.rank(): add ...
1 parent 8828049 commit 24a0709

6 files changed

Lines changed: 25 additions & 7 deletions

File tree

R/visualizations.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ visualize.ma <- function(dataSet, M.thres = 1) {
429429
#'
430430
#' @param color A string (default = red") specifying the color used to highlight proteins.
431431
#'
432+
#' @param ... Optional arguments passed to \code{\link[ggrepel]{geom_text_repel}}.
433+
#'
432434
#' @return
433435
#' An object of class \code{ggplot}.
434436
#'
@@ -437,7 +439,8 @@ visualize.ma <- function(dataSet, M.thres = 1) {
437439
#' @export
438440

439441
visualize.rank <- function(dataSet, listName = NULL, regexName = NULL, by = NULL,
440-
facet = c("Condition", "Replicate"), color = "red") {
442+
facet = c("Condition", "Replicate"), color = "red",
443+
...) {
441444

442445
information <- read.csv("preprocess_protein_information.csv", check.names = FALSE)
443446
scaffoldCheck <- any(colnames(information) == "Visible?")
@@ -514,7 +517,8 @@ visualize.rank <- function(dataSet, listName = NULL, regexName = NULL, by = NULL
514517
}
515518

516519
if (length(unionName) > 1) {
517-
plot <- plot + geom_text_repel(data = plotData, aes(label = Label), size = 2.5, show.legend = FALSE)
520+
plot <- plot + geom_text_repel(data = plotData, aes(label = Label),
521+
size = 2.5, show.legend = FALSE, ...)
518522
}
519523

520524
return(plot)

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ articles:
1414
summarization: summarization.html
1515
transformation: transformation.html
1616
visualization: visualization.html
17-
last_built: 2026-02-11T20:42Z
17+
last_built: 2026-02-11T21:11Z
1818
urls:
1919
reference: https://uconn-scs.github.io/msDiaLogue/reference
2020
article: https://uconn-scs.github.io/msDiaLogue/articles

docs/reference/visualize.rank.html

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

docs/reference/visualize.rank.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ visualize.rank(
1212
regexName = NULL,
1313
by = NULL,
1414
facet = c("Condition", "Replicate"),
15-
color = "red"
15+
color = "red",
16+
...
1617
)
1718
```
1819

@@ -56,6 +57,11 @@ visualize.rank(
5657
A string (default = red") specifying the color used to highlight
5758
proteins.
5859

60+
- ...:
61+
62+
Optional arguments passed to
63+
[`geom_text_repel`](https://ggrepel.slowkow.com/reference/geom_text_repel.html).
64+
5965
## Value
6066

6167
An object of class `ggplot`.

docs/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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)