diff --git a/R/scale-brewer.R b/R/scale-brewer.R index b3d48ab820..6ecc12ba95 100644 --- a/R/scale-brewer.R +++ b/R/scale-brewer.R @@ -76,7 +76,8 @@ #' v #' v + scale_fill_distiller() #' v + scale_fill_distiller(palette = "Spectral") -#' # the order of colour can be reversed, but with scale_*_distiller(), the default direction = -1, so to reverse, use direction = 1. +#' # the order of colour can be reversed, but with scale_*_distiller(), +#' # the default direction = -1, so to reverse, use direction = 1. #' v + scale_fill_distiller(palette = "Spectral", direction = 1) #' #' # or use blender variants to discretise continuous data diff --git a/man/scale_brewer.Rd b/man/scale_brewer.Rd index 073d3f0d02..428aef60b5 100644 --- a/man/scale_brewer.Rd +++ b/man/scale_brewer.Rd @@ -169,7 +169,8 @@ v <- ggplot(faithfuld) + v v + scale_fill_distiller() v + scale_fill_distiller(palette = "Spectral") -# the order of colour can be reversed, but with scale_*_distiller(), the default direction = -1, so to reverse, use direction = 1. +# the order of colour can be reversed, but with scale_*_distiller(), +# the default direction = -1, so to reverse, use direction = 1. v + scale_fill_distiller(palette = "Spectral", direction = 1) # or use blender variants to discretise continuous data