|
36 | 36 | #' @return A ggplot showing the volcano plot.
|
37 | 37 | #' @export
|
38 | 38 | #'
|
39 |
| -#' @seealso [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()]] |
| 39 | +#' @seealso [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()] |
40 | 40 | #'
|
41 | 41 | #' @examples
|
42 | 42 | #'
|
@@ -184,7 +184,7 @@ VolcanoPlot <- function(p,
|
184 | 184 | #' @return A ggplot object of the volcano plot from a ttest result.
|
185 | 185 | #' @export
|
186 | 186 | #'
|
187 |
| -#' @seealso [VolcanoPlot()], [VolcanoPlot_ANOVA()]] |
| 187 | +#' @seealso [VolcanoPlot()], [VolcanoPlot_ANOVA()], [add_labels()] |
188 | 188 | #'
|
189 | 189 | #' @examples
|
190 | 190 | #'
|
@@ -340,9 +340,11 @@ VolcanoPlot_ttest <- function(RES,
|
340 | 340 | #' @return A list of ggplots of the volcano plot from an ANOVA result.
|
341 | 341 | #' @export
|
342 | 342 | #'
|
343 |
| -#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()]] |
| 343 | +#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()], [add_labels()] |
344 | 344 | #'
|
345 | 345 | #' @examples
|
| 346 | +#' |
| 347 | + |
346 | 348 | VolcanoPlot_ANOVA <- function(RES,
|
347 | 349 | columnname_p_ANOVA = "p.anova",
|
348 | 350 | columnname_p_ANOVA_adj = "p.anova.fdr",
|
@@ -442,18 +444,28 @@ VolcanoPlot_ANOVA <- function(RES,
|
442 | 444 |
|
443 | 445 |
|
444 | 446 |
|
445 |
| -#' Add labels to a volcano plot |
| 447 | +#' Add labels to a volcano plot. |
446 | 448 | #'
|
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. |
452 | 460 | #'
|
453 |
| -#' @return ggplot object with labels |
| 461 | +#' @return A ggplot object with labels. |
454 | 462 | #' @export
|
| 463 | +#' |
| 464 | +#' @seealso [VolcanoPlot()], [VolcanoPlot_ttest()], [VolcanoPlot_ANOVA()] |
455 | 465 | #'
|
456 |
| -#' @examples # TODO |
| 466 | +#' @examples |
| 467 | +#' |
| 468 | + |
457 | 469 | add_labels <- function(RES_Volcano,
|
458 | 470 | label_type = "FDR",
|
459 | 471 | ind = NULL,
|
|
0 commit comments