Skip to content

Commit 92c4c7c

Browse files
committed
Add note about the number of interpolated colours
1 parent 846537e commit 92c4c7c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

R/scale-brewer.r

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
#' ColorBrewer provides sequential, diverging and qualitative colour schemes
44
#' which are particularly suited and tested to display discrete values (levels
55
#' of a factor) on a map. ggplot2 can use those colours in discrete scales. It
6-
#' also allows to smoothly interpolate the colours to a continuous scale,
7-
#' although the original colour schemes (particularly the qualitative ones)
8-
#' were not intended for this. The perceptual result is left to the
9-
#' appreciation of the user.
6+
#' also allows to smoothly interpolate 6 colours from any palette to a
7+
#' continuous scale (6 colours per palette gives nice gradients; more results in
8+
#' more saturated colours which do not look as good). However, the original
9+
#' colour schemes (particularly the qualitative ones) were not intended for this
10+
#' and the perceptual result is left to the appreciation of the user.
1011
#'
1112
#' See \url{http://colorbrewer2.org} for more information.
1213
#'

man/scale_brewer.Rd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ scale_color_distiller(..., type = "seq", palette = 1, values = NULL,
4141
ColorBrewer provides sequential, diverging and qualitative colour schemes
4242
which are particularly suited and tested to display discrete values (levels
4343
of a factor) on a map. ggplot2 can use those colours in discrete scales. It
44-
also allows to smoothly interpolate the colours to a continuous scale,
45-
although the original colour schemes (particularly the qualitative ones)
46-
were not intended for this. The perceptual result is left to the
47-
appreciation of the user.
44+
also allows to smoothly interpolate 6 colours from any palette to a
45+
continuous scale (6 colours per palette gives nice gradients; more results in
46+
more saturated colours which do not look as good). However, the original
47+
colour schemes (particularly the qualitative ones) were not intended for this
48+
and the perceptual result is left to the appreciation of the user.
4849
}
4950
\details{
5051
See \url{http://colorbrewer2.org} for more information.

0 commit comments

Comments
 (0)