From fddf8cc751efca0f14ac1f620cda7f4207387cbe Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Tue, 2 Jun 2020 09:45:41 -0500 Subject: [PATCH] Update NEWS to include discrete color scale options from #3833 --- NEWS.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index a668df5662..dede40c792 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,8 +5,17 @@ * `annotation_raster()` adds support for native rasters. For large rasters, native rasters render significantly faster than arrays (@kent37, #3388) - -* Default continuous color scales (i.e., the `options()` `ggplot2.continuous.colour` and `ggplot2.continuous.fill`, which inform the `type` argument of `scale_fill_continuous()` and `scale_colour_continuous()`) now accept a function, which allows more control over these default `continuous_scale()`s (@cpsievert, #3827) + +* Default discrete color scales are now configurable through the `options()` of + `ggplot2.discrete.colour` and `ggplot2.discrete.fill`. When set to a character + vector of colour codes (or list of character vectors) with sufficient length, + these colours are used for the default scale. See `help(scale_colour_discrete)` + for more details and examples (@cpsievert, #3833). + +* Default continuous colour scales (i.e., the `options()` `ggplot2.continuous.colour` + and `ggplot2.continuous.fill`, which inform the `type` argument of + `scale_fill_continuous()` and `scale_colour_continuous()`) now accept a function, + which allows more control over these default `continuous_scale()`s (@cpsievert, #3827). * A newly added `geom_function()` is now recommended to use in conjunction with/instead of `stat_function()`. In addition, `stat_function()` now