Skip to content

Commit 80847bb

Browse files
committed
Fix typo in docs. Spotted in #942
1 parent 953fca9 commit 80847bb

File tree

7 files changed

+24
-29
lines changed

7 files changed

+24
-29
lines changed

R/scale-datetime.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' returns a vector of breaks, or a character vector, specifying the width
88
#' between breaks. For more information about the first two, see
99
#' \code{\link{continuous_scale}}, for more information about the last,
10-
#' see \code{\link[scales]{date_breaks}}`.
10+
#' see \code{\link[scales]{date_breaks}}.
1111
#' @param minor_breaks Either \code{NULL} for no minor breaks, \code{waiver()}
1212
#' for the default breaks (one minor break between each major break), a
1313
#' numeric vector of positions, or a function that given the limits returns

man/scale_brewer.Rd

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,23 @@ scale_color_distiller(..., type = "seq", palette = 1, values = NULL,
2424
space = "Lab", na.value = "grey50")
2525
}
2626
\arguments{
27-
\item{type}{One of seq (sequential), div (diverging) or
28-
qual (qualitative)}
27+
\item{type}{One of seq (sequential), div (diverging) or qual (qualitative)}
2928

30-
\item{palette}{If a string, will use that named palette.
31-
If a number, will index into the list of palettes of
32-
appropriate \code{type}}
29+
\item{palette}{If a string, will use that named palette. If a number, will
30+
index into the list of palettes of appropriate \code{type}}
3331

3432
\item{...}{Other arguments passed on to \code{\link{discrete_scale}}
3533
to control name, limits, breaks, labels and so forth.}
3634

3735
\item{na.value}{Colour to use for missing values}
3836

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.}
37+
\item{values}{if colours should not be evenly positioned along the gradient
38+
this vector gives the position (between 0 and 1) for each colour in the
39+
\code{colours} vector. See \code{\link{rescale}} for a convience function
40+
to map an arbitrary range to between 0 and 1.}
4441

45-
\item{space}{colour space in which to calculate gradient.
46-
"Lab" usually best unless gradient goes through white.}
42+
\item{space}{colour space in which to calculate gradient. "Lab" usually
43+
best unless gradient goes through white.}
4744
}
4845
\description{
4946
ColorBrewer provides sequential, diverging and qualitative colour schemes

man/scale_datetime.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ scale_y_datetime(..., expand = waiver(), breaks = pretty_breaks(),
1515
returns a vector of breaks, or a character vector, specifying the width
1616
between breaks. For more information about the first two, see
1717
\code{\link{continuous_scale}}, for more information about the last,
18-
see \code{\link[scales]{date_breaks}}`.}
18+
see \code{\link[scales]{date_breaks}}.}
1919

2020
\item{minor_breaks}{Either \code{NULL} for no minor breaks, \code{waiver()}
2121
for the default breaks (one minor break between each major break), a

man/scale_gradient.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ to control name, limits, breaks, labels and so forth.}
3939

4040
\item{high}{colour for high end of gradient.}
4141

42-
\item{space}{colour space in which to calculate gradient.
43-
"Lab" usually best unless gradient goes through white.}
42+
\item{space}{colour space in which to calculate gradient. "Lab" usually
43+
best unless gradient goes through white.}
4444
}
4545
\description{
4646
Default colours are generated with \pkg{munsell} and

man/scale_gradient2.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ to control name, limits, breaks, labels and so forth.}
3535

3636
\item{high}{colour for high end of gradient.}
3737

38-
\item{space}{colour space in which to calculate gradient.
39-
"Lab" usually best unless gradient goes through white.}
38+
\item{space}{colour space in which to calculate gradient. "Lab" usually
39+
best unless gradient goes through white.}
4040
}
4141
\description{
4242
Diverging colour gradient

man/scale_gradientn.Rd

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ colour bar, or \code{"legend"} for discrete colour legend.}
2020

2121
\item{colours}{vector of colours}
2222

23-
\item{values}{if colours should not be evenly positioned
24-
along the gradient this vector gives the position
25-
(between 0 and 1) for each colour in the \code{colours}
26-
vector. See \code{\link{rescale}} for a convience
27-
function to map an arbitrary range to between 0 and 1.}
23+
\item{values}{if colours should not be evenly positioned along the gradient
24+
this vector gives the position (between 0 and 1) for each colour in the
25+
\code{colours} vector. See \code{\link{rescale}} for a convience function
26+
to map an arbitrary range to between 0 and 1.}
2827

29-
\item{space}{colour space in which to calculate gradient.
30-
"Lab" usually best unless gradient goes through white.}
28+
\item{space}{colour space in which to calculate gradient. "Lab" usually
29+
best unless gradient goes through white.}
3130

3231
\item{...}{Other arguments passed on to \code{\link{discrete_scale}}
3332
to control name, limits, breaks, labels and so forth.}

man/scale_hue.Rd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ to control name, limits, breaks, labels and so forth.}
3434

3535
\item{h}{range of hues to use, in [0, 360]}
3636

37-
\item{c}{chroma (intensity of colour), maximum value
38-
varies depending on}
37+
\item{c}{chroma (intensity of colour), maximum value varies depending on}
3938

4039
\item{l}{luminance (lightness), in [0, 100]}
4140

4241
\item{h.start}{hue to start at}
4342

44-
\item{direction}{direction to travel around the colour
45-
wheel, 1 = clockwise, -1 = counter-clockwise}
43+
\item{direction}{direction to travel around the colour wheel,
44+
1 = clockwise, -1 = counter-clockwise}
4645
}
4746
\description{
4847
Qualitative colour scale with evenly spaced hues.

0 commit comments

Comments
 (0)