Skip to content

Commit 188bfb6

Browse files
committed
documenting add_labels + some typos
1 parent f97450d commit 188bfb6

File tree

5 files changed

+42
-24
lines changed

5 files changed

+42
-24
lines changed

R/volcanoPlots.R

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#' @return A ggplot showing the volcano plot.
3737
#' @export
3838
#'
39-
#' @seealso [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()]]
39+
#' @seealso [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()]
4040
#'
4141
#' @examples
4242
#'
@@ -184,7 +184,7 @@ VolcanoPlot <- function(p,
184184
#' @return A ggplot object of the volcano plot from a ttest result.
185185
#' @export
186186
#'
187-
#' @seealso [VolcanoPlot()], [VolcanoPlot_ANOVA()]]
187+
#' @seealso [VolcanoPlot()], [VolcanoPlot_ANOVA()], [add_labels()]
188188
#'
189189
#' @examples
190190
#'
@@ -340,9 +340,11 @@ VolcanoPlot_ttest <- function(RES,
340340
#' @return A list of ggplots of the volcano plot from an ANOVA result.
341341
#' @export
342342
#'
343-
#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()]]
343+
#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()], [add_labels()]
344344
#'
345345
#' @examples
346+
#'
347+
346348
VolcanoPlot_ANOVA <- function(RES,
347349
columnname_p_ANOVA = "p.anova",
348350
columnname_p_ANOVA_adj = "p.anova.fdr",
@@ -442,18 +444,28 @@ VolcanoPlot_ANOVA <- function(RES,
442444

443445

444446

445-
#' Add labels to a volcano plot
447+
#' Add labels to a volcano plot.
446448
#'
447-
#' @param RES_Volcano result from volcanoPlot(): a list containing the data frame with the transformed data and the ggplot object
448-
#' @param label_type "FDR" (significant after correction) or "noFDR" (significant without correction) or "index" -> define indizes to label
449-
#' @param protein_name_column column name of the protein names in the RES data frame
450-
#' @param ind The index if the label_type is "index"
451-
#' @param protein_names The names of the proteins
449+
#' @param RES_Volcano \strong{result from [VolcanoPlot()]} \cr
450+
#' A list containing the data.frame with the transformed data and the ggplot object.
451+
#' @param label_type \strong{character} \cr
452+
#' The label type.
453+
#' Options are "FDR" (significant after correction) or "noFDR" (significant without correction) or "index" -> define indices to label
454+
#' @param protein_name_column \strong{character} \cr
455+
#' The column name of the protein names in the RES data.frame.
456+
#' @param ind \strong{integer} \cr
457+
#' The index if the label_type is "index".
458+
#' @param protein_names \strong{character vector} \cr
459+
#' The names of the proteins.
452460
#'
453-
#' @return ggplot object with labels
461+
#' @return A ggplot object with labels.
454462
#' @export
463+
#'
464+
#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()]
455465
#'
456-
#' @examples # TODO
466+
#' @examples
467+
#'
468+
457469
add_labels <- function(RES_Volcano,
458470
label_type = "FDR",
459471
ind = NULL,

man/VolcanoPlot.Rd

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

man/VolcanoPlot_ANOVA.Rd

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

man/VolcanoPlot_ttest.Rd

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

man/add_labels.Rd

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)