|
1 | | -#' Sequential, diverging and qualitative colour scales from colorbrewer.org |
| 1 | +#' Sequential, diverging and qualitative colour scales from ColorBrewer |
2 | 2 | #' |
3 | 3 | #' @description |
4 | | -#' The `brewer` scales provides sequential, diverging and qualitative |
| 4 | +#' The `brewer` scales provide sequential, diverging and qualitative |
5 | 5 | #' colour schemes from ColorBrewer. These are particularly well suited to |
6 | 6 | #' display discrete values on a map. See \url{http://colorbrewer2.org} for |
7 | 7 | #' more information. |
8 | 8 | #' |
9 | 9 | #' @note |
10 | | -#' The `distiller` scales extend brewer to continuous scales by smoothly |
| 10 | +#' The `distiller` scales extend `brewer` scales by smoothly |
11 | 11 | #' interpolating 7 colours from any palette to a continuous scale. The `fermenter` |
12 | | -#' scales provide binned versions of the brewer scales. |
| 12 | +#' scales provide binned versions of the `brewer` scales. |
13 | 13 | #' |
14 | 14 | #' @details |
15 | 15 | #' The `brewer` scales were carefully designed and tested on discrete data. |
|
24 | 24 | #' \item{Sequential}{Blues, BuGn, BuPu, GnBu, Greens, Greys, Oranges, |
25 | 25 | #' OrRd, PuBu, PuBuGn, PuRd, Purples, RdPu, Reds, YlGn, YlGnBu, YlOrBr, YlOrRd} |
26 | 26 | #' } |
27 | | -#' Modify the palette through the `palette` arguement. |
| 27 | +#' Modify the palette through the `palette` argument. |
28 | 28 | #' |
29 | 29 | #' @inheritParams scales::brewer_pal |
30 | 30 | #' @inheritParams scale_colour_hue |
|
73 | 73 | #' v + scale_fill_distiller() |
74 | 74 | #' v + scale_fill_distiller(palette = "Spectral") |
75 | 75 | #' |
76 | | -#' # or use blender variants to discretize continuous data |
| 76 | +#' # or use blender variants to discretise continuous data |
77 | 77 | #' v + scale_fill_fermenter() |
78 | 78 | #' |
79 | 79 | scale_colour_brewer <- function(..., type = "seq", palette = 1, direction = 1, aesthetics = "colour") { |
|
0 commit comments