Skip to content

Commit 115c396

Browse files
Increase the default nbin of colourbar (#3521)
* Increase the default nbin of colourbar to 300
1 parent f16f16f commit 115c396

25 files changed

+315
-313
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282

8383
* Fix a bug when `show.legend` is a named logical vector (#3461, @yutannihilation).
8484

85+
* Increase the default `nbin` of `guide_colourbar()` to place the ticks more precisely (#3508, @yutannihilation).
86+
8587
# ggplot2 3.2.1
8688

8789
This is a patch release fixing a few regressions introduced in 3.2.0 as well as

R/guide-colorbar.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ guide_colourbar <- function(
116116
# bar
117117
barwidth = NULL,
118118
barheight = NULL,
119-
nbin = 20,
119+
nbin = 300,
120120
raster = TRUE,
121121

122122
# frame

man/guide_colourbar.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/figs/geom-raster/1-x-3-just-0-0.svg

+13-13
Loading

tests/figs/geom-raster/1-x-3-set-limits.svg

+13-13
Loading

0 commit comments

Comments
 (0)