From be78540e9a550d89233e1b5a4ce7339b93773e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Guillou?= Date: Thu, 23 Jul 2020 15:26:30 +1000 Subject: [PATCH 1/2] typos; stick to en-GB; prefer project to website Use ColorBrewer project name rather than obsolete website name. Not sure what is meant by "use blender variants" in the last example. Should it be "use binned variants"? --- R/scale-brewer.r | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/R/scale-brewer.r b/R/scale-brewer.r index c59a7a764e..42e6b51386 100644 --- a/R/scale-brewer.r +++ b/R/scale-brewer.r @@ -1,15 +1,15 @@ -#' Sequential, diverging and qualitative colour scales from colorbrewer.org +#' Sequential, diverging and qualitative colour scales from ColorBrewer #' #' @description -#' The `brewer` scales provides sequential, diverging and qualitative +#' The `brewer` scales provide sequential, diverging and qualitative #' colour schemes from ColorBrewer. These are particularly well suited to #' display discrete values on a map. See \url{http://colorbrewer2.org} for #' more information. #' #' @note -#' The `distiller` scales extend brewer to continuous scales by smoothly +#' The `distiller` scales extend `brewer` scales by smoothly #' interpolating 7 colours from any palette to a continuous scale. The `fermenter` -#' scales provide binned versions of the brewer scales. +#' scales provide binned versions of the `brewer` scales. #' #' @details #' The `brewer` scales were carefully designed and tested on discrete data. @@ -24,7 +24,7 @@ #' \item{Sequential}{Blues, BuGn, BuPu, GnBu, Greens, Greys, Oranges, #' OrRd, PuBu, PuBuGn, PuRd, Purples, RdPu, Reds, YlGn, YlGnBu, YlOrBr, YlOrRd} #' } -#' Modify the palette through the `palette` arguement. +#' Modify the palette through the `palette` argument. #' #' @inheritParams scales::brewer_pal #' @inheritParams scale_colour_hue @@ -73,7 +73,7 @@ #' v + scale_fill_distiller() #' v + scale_fill_distiller(palette = "Spectral") #' -#' # or use blender variants to discretize continuous data +#' # or use blender variants to discretise continuous data #' v + scale_fill_fermenter() #' scale_colour_brewer <- function(..., type = "seq", palette = 1, direction = 1, aesthetics = "colour") { From ee40d2343c424f4654122513586ac372b46bf47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Guillou?= Date: Fri, 24 Jul 2020 23:23:41 +1000 Subject: [PATCH 2/2] update doc for minor fixes --- man/scale_brewer.Rd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man/scale_brewer.Rd b/man/scale_brewer.Rd index c2a90c0a5d..8815ad8942 100644 --- a/man/scale_brewer.Rd +++ b/man/scale_brewer.Rd @@ -10,7 +10,7 @@ \alias{scale_color_brewer} \alias{scale_color_distiller} \alias{scale_color_fermenter} -\title{Sequential, diverging and qualitative colour scales from colorbrewer.org} +\title{Sequential, diverging and qualitative colour scales from ColorBrewer} \usage{ scale_colour_brewer( ..., @@ -106,7 +106,7 @@ other values are deprecated.} colour bar, or \code{"legend"} for discrete colour legend.} } \description{ -The \code{brewer} scales provides sequential, diverging and qualitative +The \code{brewer} scales provide sequential, diverging and qualitative colour schemes from ColorBrewer. These are particularly well suited to display discrete values on a map. See \url{http://colorbrewer2.org} for more information. @@ -117,9 +117,9 @@ They were not designed to be extended to continuous data, but results often look good. Your mileage may vary. } \note{ -The \code{distiller} scales extend brewer to continuous scales by smoothly +The \code{distiller} scales extend \code{brewer} scales by smoothly interpolating 7 colours from any palette to a continuous scale. The \code{fermenter} -scales provide binned versions of the brewer scales. +scales provide binned versions of the \code{brewer} scales. } \section{Palettes}{ @@ -130,7 +130,7 @@ The following palettes are available for use with these scales: \item{Sequential}{Blues, BuGn, BuPu, GnBu, Greens, Greys, Oranges, OrRd, PuBu, PuBuGn, PuRd, Purples, RdPu, Reds, YlGn, YlGnBu, YlOrBr, YlOrRd} } -Modify the palette through the \code{palette} arguement. +Modify the palette through the \code{palette} argument. } \examples{ @@ -167,7 +167,7 @@ v v + scale_fill_distiller() v + scale_fill_distiller(palette = "Spectral") -# or use blender variants to discretize continuous data +# or use blender variants to discretise continuous data v + scale_fill_fermenter() }