From b91d133c68d72add786930b43dde1940fc6dcf6a Mon Sep 17 00:00:00 2001 From: Teun van den Brand <49372158+teunbrand@users.noreply.github.com> Date: Fri, 27 Oct 2023 11:24:55 +0200 Subject: [PATCH] linebreak example comment --- R/scale-brewer.R | 3 ++- man/scale_brewer.Rd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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