Skip to content

Commit 7d0a691

Browse files
committed
Add the American spelling synonym scale_color_brewerc()
1 parent 74c4609 commit 7d0a691

File tree

8 files changed

+20
-4
lines changed

8 files changed

+20
-4
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export(scale_alpha_identity)
299299
export(scale_alpha_manual)
300300
export(scale_area)
301301
export(scale_color_brewer)
302+
export(scale_color_brewerc)
302303
export(scale_color_continuous)
303304
export(scale_color_discrete)
304305
export(scale_color_gradient)

R/zxx.r

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ scale_fill_continuous <- scale_fill_gradient
2222
#' @rdname scale_brewer
2323
scale_color_brewer <- scale_colour_brewer
2424

25+
#' @export
26+
#' @rdname scale_brewer
27+
scale_color_brewerc <- scale_colour_brewerc
28+
2529
#' @export
2630
#' @rdname scale_gradient
2731
scale_color_continuous <- scale_colour_gradient

man/scale_brewer.Rd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
% Generated by roxygen2 (4.0.0): do not edit by hand
22
\name{scale_colour_brewer}
33
\alias{scale_color_brewer}
4+
\alias{scale_color_brewerc}
45
\alias{scale_colour_brewer}
56
\alias{scale_colour_brewerc}
67
\alias{scale_fill_brewer}
@@ -18,6 +19,9 @@ scale_fill_brewerc(..., type = "seq", palette = 1,
1819
values = NULL, space = "Lab", na.value = "grey50")
1920

2021
scale_color_brewer(..., type = "seq", palette = 1)
22+
23+
scale_color_brewerc(..., type = "seq", palette = 1,
24+
values = NULL, space = "Lab", na.value = "grey50")
2125
}
2226
\arguments{
2327
\item{type}{One of seq (sequential), div (diverging) or

man/scale_gradient.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ qplot(mpg, wt, data = mtcars, colour = miss) +
9999
palette
100100

101101
Other colour scales: \code{\link{scale_color_brewer}},
102+
\code{\link{scale_color_brewerc}},
102103
\code{\link{scale_colour_brewer}},
103-
\code{\link{scale_fill_brewer}};
104+
\code{\link{scale_colour_brewerc}},
104105
\code{\link{scale_color_discrete}},
105106
\code{\link{scale_color_hue}},
106107
\code{\link{scale_colour_brewer}},

man/scale_gradient2.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ p + scale_fill_gradient2("fill")
8787
}
8888
\seealso{
8989
Other colour scales: \code{\link{scale_color_brewer}},
90+
\code{\link{scale_color_brewerc}},
9091
\code{\link{scale_colour_brewer}},
91-
\code{\link{scale_fill_brewer}};
92+
\code{\link{scale_colour_brewerc}},
9293
\code{\link{scale_color_continuous}},
9394
\code{\link{scale_color_gradient}},
9495
\code{\link{scale_color_gradientn}},

man/scale_gradientn.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ d + scale_colour_gradientn(colours = terrain.colors(10),
6868
}
6969
\seealso{
7070
Other colour scales: \code{\link{scale_color_brewer}},
71+
\code{\link{scale_color_brewerc}},
7172
\code{\link{scale_colour_brewer}},
72-
\code{\link{scale_fill_brewer}};
73+
\code{\link{scale_colour_brewerc}},
7374
\code{\link{scale_color_continuous}},
7475
\code{\link{scale_color_gradient}},
7576
\code{\link{scale_color_gradient2}},

man/scale_grey.Rd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ qplot(mpg, wt, data = mtcars, colour = miss) +
4141
}
4242
\seealso{
4343
Other colour scales: \code{\link{scale_color_brewer}},
44+
\code{\link{scale_color_brewerc}},
4445
\code{\link{scale_colour_brewer}},
46+
\code{\link{scale_colour_brewerc}},
4547
\code{\link{scale_fill_brewer}};
4648
\code{\link{scale_color_continuous}},
4749
\code{\link{scale_color_gradient}},

man/scale_hue.Rd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ qplot(mpg, wt, data = mtcars, colour = miss) +
8585
}
8686
}
8787
\seealso{
88+
<<<<<<< HEAD
8889
Other colour scales: \code{\link{scale_color_brewer}},
90+
\code{\link{scale_color_brewerc}},
8991
\code{\link{scale_colour_brewer}},
90-
\code{\link{scale_fill_brewer}};
92+
\code{\link{scale_colour_brewerc}},
9193
\code{\link{scale_color_continuous}},
9294
\code{\link{scale_color_gradient}},
9395
\code{\link{scale_color_gradient2}},

0 commit comments

Comments
 (0)