Skip to content

Commit c263e94

Browse files
committed
Doc fixes
1 parent b05301a commit c263e94

File tree

4 files changed

+35
-25
lines changed

4 files changed

+35
-25
lines changed

R/scale-brewer.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' @inheritParams scales::brewer_pal
1515
#' @inheritParams scale_colour_hue
1616
#' @inheritParams scale_colour_gradient
17+
#' @inheritParams scales::gradient_n_pal
1718
#' @family colour scales
1819
#' @rdname scale_brewer
1920
#' @export
@@ -89,7 +90,7 @@ scale_fill_distiller <- function(..., type = "seq", palette = 1, values = NULL,
8990
}
9091

9192
# icon.brewer <- function() {
92-
# rectGrob(c(0.1, 0.3, 0.5, 0.7, 0.9), width = 0.21,
93+
# rectGrob(c(0.1, 0.3, 0.5, 0.7, 0.9), width = 0.21,
9394
# gp = gpar(fill = RColorBrewer::brewer.pal(5, "PuOr"), col = NA)
9495
# )
9596
# }

R/theme-defaults.r

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88
#'
99
#' @details \describe{
1010
#'
11-
#' \item{\code{theme_gray}}
12-
#' {The signature ggplot2 theme with a grey background and white gridlines,
11+
#' \item{\code{theme_gray}}{
12+
#' The signature ggplot2 theme with a grey background and white gridlines,
1313
#' designed to put the data forward yet make comparisons easy.}
1414
#'
15-
#' \item{\code{theme_bw}}
16-
#' {The classic dark-on-light ggplot2 theme. May work better for presentations
15+
#' \item{\code{theme_bw}}{
16+
#' The classic dark-on-light ggplot2 theme. May work better for presentations
1717
#' displayed with a projector.}
1818
#'
19-
#' \item{\code{theme_linedraw}}
20-
#' {A theme with only black lines of various widths on white backgrounds,
19+
#' \item{\code{theme_linedraw}}{
20+
#' A theme with only black lines of various widths on white backgrounds,
2121
#' reminiscent of a line drawings. Serves a purpose similar to \code{theme_bw}.
2222
#' Note that this theme has some very thin lines (<< 1 pt) which some journals
2323
#' may refuse.}
2424
#'
25-
#' \item{\code{theme_light}}
26-
#' {A theme similar to \code{theme_linedraw} but with light grey lines and axes,
25+
#' \item{\code{theme_light}}{
26+
#' A theme similar to \code{theme_linedraw} but with light grey lines and axes,
2727
#' to direct more attention towards the data.}
2828
#'
29-
#' \item{\code{theme_minimal}}
30-
#' {A minimalistic theme with no background annotations.}
29+
#' \item{\code{theme_minimal}}{
30+
#' A minimalistic theme with no background annotations.}
3131
#'
32-
#' \item{\code{theme_classic}}
33-
#' {A classic-looking theme, with x and y axis lines and no gridlines.}
32+
#' \item{\code{theme_classic}}{
33+
#' A classic-looking theme, with x and y axis lines and no gridlines.}
3434
#'
3535
#' }
3636
#'

man/ggtheme.Rd

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ background, gridlines, the size and colour of fonts.
3636
\details{
3737
\describe{
3838

39-
\item{\code{theme_gray}}
40-
{The signature ggplot2 theme with a grey background and white gridlines,
39+
\item{\code{theme_gray}}{
40+
The signature ggplot2 theme with a grey background and white gridlines,
4141
designed to put the data forward yet make comparisons easy.}
4242

43-
\item{\code{theme_bw}}
44-
{The classic dark-on-light ggplot2 theme. May work better for presentations
43+
\item{\code{theme_bw}}{
44+
The classic dark-on-light ggplot2 theme. May work better for presentations
4545
displayed with a projector.}
4646

47-
\item{\code{theme_linedraw}}
48-
{A theme with only black lines of various widths on white backgrounds,
47+
\item{\code{theme_linedraw}}{
48+
A theme with only black lines of various widths on white backgrounds,
4949
reminiscent of a line drawings. Serves a purpose similar to \code{theme_bw}.
5050
Note that this theme has some very thin lines (<< 1 pt) which some journals
5151
may refuse.}
5252

53-
\item{\code{theme_light}}
54-
{A theme similar to \code{theme_linedraw} but with light grey lines and axes,
53+
\item{\code{theme_light}}{
54+
A theme similar to \code{theme_linedraw} but with light grey lines and axes,
5555
to direct more attention towards the data.}
5656

57-
\item{\code{theme_minimal}}
58-
{A minimalistic theme with no background annotations.}
57+
\item{\code{theme_minimal}}{
58+
A minimalistic theme with no background annotations.}
5959

60-
\item{\code{theme_classic}}
61-
{A classic-looking theme, with x and y axis lines and no gridlines.}
60+
\item{\code{theme_classic}}{
61+
A classic-looking theme, with x and y axis lines and no gridlines.}
6262

6363
}
6464
}

man/scale_brewer.Rd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ scale_color_distiller(..., type = "seq", palette = 1, values = NULL,
3535
to control name, limits, breaks, labels and so forth.}
3636

3737
\item{na.value}{Colour to use for missing values}
38+
39+
\item{values}{if colours should not be evenly positioned
40+
along the gradient this vector gives the position
41+
(between 0 and 1) for each colour in the \code{colours}
42+
vector. See \code{\link{rescale}} for a convience
43+
function to map an arbitrary range to between 0 and 1.}
44+
45+
\item{space}{colour space in which to calculate gradient.
46+
"Lab" usually best unless gradient goes through white.}
3847
}
3948
\description{
4049
ColorBrewer provides sequential, diverging and qualitative colour schemes

0 commit comments

Comments
 (0)