Skip to content

Commit 93468f7

Browse files
committed
Format @title and @param fields following tidyverse style guide
1 parent 78827f3 commit 93468f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+333
-314
lines changed

R/continuous-gsea.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#' The GSEA GenePattern Color Palettes
1+
#' The GSEA GenePattern color palettes
22
#'
33
#' Color palette inspired by the colors used in the
44
#' heatmaps plotted by GSEA GenePattern.
55
#'
66
#' @param palette Palette type.
7-
#' Currently there is one available option: `"default"`
8-
#' (continuous palette with 12 base colors).
7+
#' Currently there is one available option: `"default"`
8+
#' (continuous palette with 12 base colors).
99
#' @param n Number of individual colors to be generated.
1010
#' @param alpha Transparency level, a real number in (0, 1].
11-
#' See `alpha` in [grDevices::rgb()] for details.
11+
#' See `alpha` in [grDevices::rgb()] for details.
1212
#' @param reverse Logical. Should the order of the colors be reversed?
1313
#'
1414
#' @export rgb_gsea
@@ -43,7 +43,7 @@ rgb_gsea <- function(palette = c("default"), n = 12, alpha = 1, reverse = FALSE)
4343
alpha_cols
4444
}
4545

46-
#' The GSEA GenePattern Color Palettes
46+
#' The GSEA GenePattern color palettes
4747
#'
4848
#' Color palette inspired by the colors used in the
4949
#' heatmaps plotted by GSEA GenePattern.
@@ -66,12 +66,12 @@ pal_gsea <- function(palette = c("default"), n = 12, alpha = 1, reverse = FALSE)
6666
manual_pal(unname(alpha_cols))
6767
}
6868

69-
#' The GSEA GenePattern Color Scales
69+
#' The GSEA GenePattern color scales
7070
#'
7171
#' See [pal_gsea()] for details.
7272
#'
7373
#' @inheritParams pal_gsea
74-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
74+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
7575
#'
7676
#' @export scale_color_gsea
7777
#'

R/continuous-material.R

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
#' Material Design Color Palettes
2-
#'
3-
#' The Material Design color palettes.
4-
#'
5-
#' @param palette Palette type.
6-
#' There are 19 available options:
7-
#' \itemize{
8-
#' \item `"red"`
9-
#' \item `"pink"`
10-
#' \item `"purple"`
11-
#' \item `"deep-purple"`
12-
#' \item `"indigo"`
13-
#' \item `"blue"`
14-
#' \item `"light-blue"`
15-
#' \item `"cyan"`
16-
#' \item `"teal"`
17-
#' \item `"green"`
18-
#' \item `"light-green"`
19-
#' \item `"lime"`
20-
#' \item `"yellow"`
21-
#' \item `"amber"`
22-
#' \item `"orange"`,
23-
#' \item `"deep-orange"`
24-
#' \item `"brown"`
25-
#' \item `"grey"`
26-
#' \item `"blue-grey"`}
27-
#' See [Material Design color system](https://m2.material.io/design/color/the-color-system.html)
28-
#' for details.
1+
#' Material Design color palettes
2+
#'
3+
#' The Material Design 2 color palettes.
4+
#'
5+
#' @param palette Palette type. There are 19 available options:
6+
#' - `"red"`
7+
#' - `"pink"`
8+
#' - `"purple"`
9+
#' - `"deep-purple"`
10+
#' - `"indigo"`
11+
#' - `"blue"`
12+
#' - `"light-blue"`
13+
#' - `"cyan"`
14+
#' - `"teal"`
15+
#' - `"green"`
16+
#' - `"light-green"`
17+
#' - `"lime"`
18+
#' - `"yellow"`
19+
#' - `"amber"`
20+
#' - `"orange"`,
21+
#' - `"deep-orange"`
22+
#' - `"brown"`
23+
#' - `"grey"`
24+
#' - `"blue-grey"`
25+
#'
26+
#' For details, see [Material Design color
27+
#' system](https://m2.material.io/design/color/the-color-system.html).
28+
#'
2929
#' @param n Number of individual colors to be generated.
3030
#' @param alpha Transparency level, a real number in (0, 1].
31-
#' See `alpha` in [grDevices::rgb()] for details.
31+
#' See `alpha` in [grDevices::rgb()] for details.
3232
#' @param reverse Logical. Should the order of the colors be reversed?
3333
#'
3434
#' @export rgb_material
@@ -68,9 +68,9 @@ rgb_material <- function(
6868
alpha_cols
6969
}
7070

71-
#' Material Design Color Palettes
71+
#' Material Design color palettes
7272
#'
73-
#' The Material Design color palettes.
73+
#' The Material Design 2 color palettes.
7474
#'
7575
#' @inheritParams rgb_material
7676
#'
@@ -96,12 +96,12 @@ pal_material <- function(
9696
manual_pal(unname(alpha_cols))
9797
}
9898

99-
#' Material Design Color Palettes
99+
#' Material Design color palettes
100100
#'
101101
#' See [pal_material()] for details.
102102
#'
103103
#' @inheritParams pal_material
104-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
104+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
105105
#'
106106
#' @export scale_color_material
107107
#'

R/discrete-aaas.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#' AAAS Journal Color Palettes
1+
#' AAAS journal color palettes
22
#'
33
#' Color palettes inspired by plots in journals published by
44
#' American Association for the Advancement of Science (AAAS),
5-
#' such as *Science* and *Science Translational Medicine*.
5+
#' such as _Science_ and _Science Translational Medicine_.
66
#'
77
#' @param palette Palette type.
8-
#' Currently there is one available option: `"default"`
9-
#' (10-color palette inspired by *Science*).
8+
#' Currently there is one available option: `"default"`
9+
#' (10-color palette inspired by _Science_).
1010
#' @param alpha Transparency level, a real number in (0, 1].
11-
#' See `alpha` in [grDevices::rgb()] for details.
11+
#' See `alpha` in [grDevices::rgb()] for details.
1212
#'
1313
#' @export pal_aaas
1414
#'
@@ -37,12 +37,12 @@ pal_aaas <- function(palette = c("default"), alpha = 1) {
3737
manual_pal(unname(alpha_cols))
3838
}
3939

40-
#' AAAS Journal Color Scales
40+
#' AAAS journal color scales
4141
#'
4242
#' See [pal_aaas()] for details.
4343
#'
4444
#' @inheritParams pal_aaas
45-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
45+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
4646
#'
4747
#' @export scale_color_aaas
4848
#'

R/discrete-bmj.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#' BMJ Color Palettes
1+
#' BMJ color palettes
22
#'
33
#' Color palette from the BMJ living style guide.
44
#'
55
#' @param palette Palette type.
6-
#' Currently there is one available option: `"default"`
7-
#' (9-color palette).
6+
#' Currently there is one available option: `"default"`
7+
#' (9-color palette).
88
#' @param alpha Transparency level, a real number in (0, 1].
9-
#' See `alpha` in [grDevices::rgb()] for details.
9+
#' See `alpha` in [grDevices::rgb()] for details.
1010
#'
1111
#' @export pal_bmj
1212
#'
@@ -38,12 +38,12 @@ pal_bmj <- function(palette = c("default"), alpha = 1) {
3838
manual_pal(unname(alpha_cols))
3939
}
4040

41-
#' BMJ Color Scales
41+
#' BMJ color scales
4242
#'
4343
#' See [pal_bmj()] for details.
4444
#'
4545
#' @inheritParams pal_bmj
46-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
46+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
4747
#'
4848
#' @export scale_color_bmj
4949
#'

R/discrete-cosmic.R

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
#' COSMIC Color Palettes
1+
#' COSMIC color palettes
22
#'
33
#' Color palettes inspired by the colors used in projects from the
44
#' [Catalogue Of
5-
#' Somatic Mutations in Cancers (COSMIC)](https://cancer.sanger.ac.uk/cosmic)
5+
#' Somatic Mutations in Cancers (COSMIC)](https://cancer.sanger.ac.uk/cosmic).
66
#'
77
#' @param palette Palette type. Currently there are three available options:
8-
#' `"signature_substitutions"` (6-color palette),
9-
#' `"hallmarks_light"` (10-color palette), and `"hallmarks_dark"`
10-
#' (10-color palette). The `"hallmarks_light"` option is from
11-
#' [Hanahan and Weinberg (2011)](https://pubmed.ncbi.nlm.nih.gov/21376230/).
8+
#' - `"signature_substitutions"` (6-color palette).
9+
#' - `"hallmarks_light"` (10-color palette).
10+
#' - `"hallmarks_dark"` (10-color palette).
1211
#'
12+
#' The `"hallmarks_light"` option is from
13+
#' [Hanahan and Weinberg (2011)](https://pubmed.ncbi.nlm.nih.gov/21376230/).
1314
#' @param alpha Transparency level, a real number in (0, 1].
14-
#' See `alpha` in [grDevices::rgb()] for details.
15+
#' See `alpha` in [grDevices::rgb()] for details.
1516
#'
1617
#' @export pal_cosmic
1718
#'
@@ -47,12 +48,12 @@ pal_cosmic <- function(
4748
manual_pal(unname(alpha_cols))
4849
}
4950

50-
#' COSMIC Color Scales
51+
#' COSMIC color scales
5152
#'
5253
#' See [pal_cosmic()] for details.
5354
#'
5455
#' @inheritParams pal_cosmic
55-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
56+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
5657
#'
5758
#' @export scale_color_cosmic
5859
#'

R/discrete-d3.R

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
#' D3.js Color Palettes
1+
#' D3.js color palettes
22
#'
33
#' Color palettes based on the colors used by D3.js.
44
#'
5-
#' @param palette Palette type.
6-
#' There are 4 available options:
7-
#' `"category10"` (10-color palette);
8-
#' `"category20"` (20-color palette);
9-
#' `"category20b"` (20-color palette);
10-
#' `"category20c"` (20-color palette).
5+
#' @param palette Palette type. There are four available options:
6+
#' - `"category10"` (10-color palette).
7+
#' - `"category20"` (20-color palette).
8+
#' - `"category20b"` (20-color palette).
9+
#' - `"category20c"` (20-color palette).
1110
#' @param alpha Transparency level, a real number in (0, 1].
12-
#' See `alpha` in [grDevices::rgb()] for details.
11+
#' See `alpha` in [grDevices::rgb()] for details.
1312
#'
1413
#' @export pal_d3
1514
#'
@@ -43,12 +42,12 @@ pal_d3 <- function(palette = c("category10", "category20", "category20b", "categ
4342
manual_pal(unname(alpha_cols))
4443
}
4544

46-
#' D3.js Color Scales
45+
#' D3.js color scales
4746
#'
4847
#' See [pal_d3()] for details.
4948
#'
5049
#' @inheritParams pal_d3
51-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
50+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
5251
#'
5352
#' @export scale_color_d3
5453
#'

R/discrete-flatui.R

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
#' Flat UI Color Palettes
1+
#' Flat UI color palettes
22
#'
3-
#' Color palettes inspired by the colors used in *Flat UI Colors*.
3+
#' Color palettes inspired by the Flat UI colors.
44
#'
5-
#' @param palette Palette type.
6-
#' Currently there are three available option:
7-
#' `"default"` (10-color palette).
8-
#' `"flattastic"` (12-color palette).
9-
#' `"aussie"` (10-color palette).
5+
#' @param palette Palette type. Currently there are three available options:
6+
#' - `"default"` (10-color palette).
7+
#' - `"flattastic"` (12-color palette).
8+
#' - `"aussie"` (10-color palette).
109
#' @param alpha Transparency level, a real number in (0, 1].
11-
#' See `alpha` in [grDevices::rgb()] for details.
10+
#' See `alpha` in [grDevices::rgb()] for details.
1211
#'
1312
#' @export pal_flatui
1413
#'
@@ -39,12 +38,12 @@ pal_flatui <- function(palette = c("default", "flattastic", "aussie"), alpha = 1
3938
manual_pal(unname(alpha_cols))
4039
}
4140

42-
#' Flat UI Color Scales
41+
#' Flat UI color scales
4342
#'
4443
#' See [pal_flatui()] for details.
4544
#'
4645
#' @inheritParams pal_flatui
47-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
46+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
4847
#'
4948
#' @export scale_color_flatui
5049
#'

R/discrete-frontiers.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#' Frontiers Color Palettes
1+
#' Frontiers journal color palettes
22
#'
3-
#' Color palettes inspired by the colors used in *Frontiers*.
3+
#' Color palettes inspired by the colors used in _Frontiers_ journals.
44
#'
55
#' @param palette Palette type.
6-
#' Currently there is one available option: `"default"`
7-
#' (10-color palette).
6+
#' Currently there is one available option: `"default"`
7+
#' (10-color palette).
88
#' @param alpha Transparency level, a real number in (0, 1].
9-
#' See `alpha` in [grDevices::rgb()] for details.
9+
#' See `alpha` in [grDevices::rgb()] for details.
1010
#'
1111
#' @export pal_frontiers
1212
#'
@@ -35,12 +35,12 @@ pal_frontiers <- function(palette = c("default"), alpha = 1) {
3535
manual_pal(unname(alpha_cols))
3636
}
3737

38-
#' Frontiers Color Scales
38+
#' Frontiers journal color scales
3939
#'
4040
#' See [pal_frontiers()] for details.
4141
#'
4242
#' @inheritParams pal_frontiers
43-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
43+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
4444
#'
4545
#' @export scale_color_frontiers
4646
#'

R/discrete-futurama.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#' The Futurama Color Palettes
1+
#' Futurama color palettes
22
#'
3-
#' Color palettes inspired by the colors used in *Futurama*.
3+
#' Color palettes inspired by the colors used in _Futurama_.
44
#'
55
#' @param palette Palette type.
6-
#' Currently there is one available option: `"planetexpress"`
7-
#' (12-color palette).
6+
#' Currently there is one available option: `"planetexpress"`
7+
#' (12-color palette).
88
#' @param alpha Transparency level, a real number in (0, 1].
9-
#' See `alpha` in [grDevices::rgb()] for details.
9+
#' See `alpha` in [grDevices::rgb()] for details.
1010
#'
1111
#' @export pal_futurama
1212
#'
@@ -35,12 +35,12 @@ pal_futurama <- function(palette = c("planetexpress"), alpha = 1) {
3535
manual_pal(unname(alpha_cols))
3636
}
3737

38-
#' The Futurama Color Scales
38+
#' Futurama color scales
3939
#'
4040
#' See [pal_futurama()] for details.
4141
#'
4242
#' @inheritParams pal_futurama
43-
#' @param ... additional parameters for [ggplot2::discrete_scale()]
43+
#' @param ... Additional parameters for [ggplot2::discrete_scale()].
4444
#'
4545
#' @export scale_color_futurama
4646
#'

0 commit comments

Comments
 (0)