Changelog
Source:NEWS.md
ggblanket 7.9.9000
- Breaking: renamed
col_pal
tocol_palette
. - Breaking: removed ability to use
col_palette
whencol = NULL
. - Breaking: in
set_blanket
, renamed arguments. - Breaking: updated
weave_*
functions and added new ones. - Breaking: removed
facet_labels_position
andfacet_labels_switch
. - Breaking: in
aes_contrast
, changed arguments. - Updated
set_blanket()
andweave_*()
to set ggplot2 as well as ggblanket. - Updated
set_blanket()
andweave_col_palette()
to set the defaultcol_palette
. - Breaking: removed
*ness
helper palettes. - Added
orientation
argument to*_mode_*
functions for use with ggplot2. - Added arguments to
*_mode_*
for more control with colours and linewidths. - Added
red
andpink
. - Added
jumble
discrete colour palette. - Changed the
col_palette_na
default. - Updated default style of colourbars.
- Made compatible with extension geoms with no x or y variables in
layer_data
. - Fixed bug with
set_blanket
, which made {gghighlight} not work.
ggblanket 7.0.0
CRAN release: 2024-03-28
- Added
set_blanket
function, which is now required to set the style. - Added
weave_geom_defaults
andweave_annotate_defaults
helper functions. - Supported the use of
colour
andfill
. - Breaking: removed all
alpha
arguments. - Breaking: renamed
mode_set
toweave_mode
. - Breaking: in
aes_contrast
, renamedcol_pal
tocontrast_pal
. - Breaking: removed
greys
. - Breaking: removed
plum
. - Improved
*_expand
defaults for histograms and bar graphs etc. - Fixed bug to support use of a named
col_pal
. - Fixed bug when positional scale reversed with
*_expand_limits
.
ggblanket 6.0.0
CRAN release: 2024-02-23
- Rewrote code completely.
- Exported
gg_blanket
function, which allows for a ggproto geom (or character string) to be added. - Added
aes_contrast
for a colour aesthetic that automatically contrasts with the fill aesthetic based on work by (@teunbrand, #649) ** Addedalpha
aesthetic support with newalpha
,alpha_pal
andalpha_*
arguments. - Added
stat
support for a ggproto object (or character string). - Added
position
support for a ggproto object (or character string). - Added
transform
support for a transform class object (or character string). - Added
facet_axes
andfacet_axis_labels
arguments. - Added
facet_labels_position
argument. - Added
gg_quantile
,gg_rug
, andgg_function
functions. - Added
col_steps
argument to support colouring by steps. - Added
*_position
argument to support changing axis positions. - Added
mode_set
function. - Breaking: made
theme_set
set the theme globally with no side-effects. - Breaking: Added
light_mode_*
,dark_mode_*
andgrey_mode_*
family of functions. - Updated
gg_*
functions to pretty removal of a axis line and ticks. - Changed default theme to place the legend on the top right.
- Changed NULL effect of pretty axis
*_limits = c(NA, NA)
ony_expand
NULL. - Improved default gridlines, and changed their default colour.
- Fixed bug when
col
is logical class. - Added new helper hex codes
blue
,teal
,orange
,navy
,plum
, andgreys
- Updated the default discrete palette.
- Breaking: shift
...
to the front to require users to name arguments. - Breaking: renamed
theme
argument tomode
. - Breaking: renamed
pal
tocol_pal
. - Breaking: renamed
pal_na
tocol_pal_na
. - Breaking: renamed
alpha
toalpha_pal
. - Breaking:
alpha
now refers to the aesthetic only. - Breaking: renamed
*_include
to*_expand_limits
. - Breaking: renamed
*_trans
to*_transform
. - Breaking: removed
col_legend_place
argument. - Breaking: removed
*_sec_axis
argument. - Breaking: removed
light_mode
anddark_mode
functions. - Breaking: removed
col_scale
argument. - Breaking: removed
gg_blank
function. - Breaking: removed
*_gridlines
arguments. - Breaking: renamed
facet_switch
argument tofacet_labels_switch
. - Breaking: removed
guardian
function. - Breaking: renamed
str_keep_seq
toreplace_seq
. - Breaking: renamed
titles
totitles_to_case
. - Breaking: removed magic where
*_title = ""
removed the title. - Improved log transform defaults.
- Changed
legend.byrow
to FALSE. - Each
gg_*
function’s help now inherits parameters fromgg_blanket
(@olivroy, #625). Other improved documentation of help (@olivroy, #643).
ggblanket 5.2.0
CRAN release: 2023-11-10
- Updated colours:
#357BA2
ormako[9](5)
where no col aesthetic,guardian
where discrete and 4 or less colours, scales:hue_pal for 5 or more colours,viridisLite::mako
reversed for continuous, and"grey"
for NA. - Breaking: removed all
pal_*
functions. - Removed some unnecessary messages.
- Fixed bug where
col_breaks
was not working for a numericcol
. - Fixed bug where
str_keep_seq
was not working for date, datetime or time class. - Fixed bug so that time class variables work.
- Fixed bug for
gg_contour_filled
andgg_density_filled
with default number of colours. - Improved default positional breaks.
- Ensured positional breaks take expand into account.
- Updated
gg_qq
, so it includes ageom_qq_line
layer, has nicerx_title
,y_title
andcoord
defaults. - Added more positional scale arguments to
gg_sf
(i.e.*_limits
,*_expand
,*_breaks
, and*_labels
). - Improved margins where
col_legend_place
is top.
ggblanket 5.1.0
CRAN release: 2023-09-19
- Fixed bug where
col
variable was reversing for non-flipped. - Added
pal_light_mode
andpal_dark_mode
.
ggblanket 5.0.0
CRAN release: 2023-09-12
- Added
mapping
argument to allow extra aesthetics to be included, such asshape
(or use delayed evaluation for aesthetics other thancol
,colour
,fill
oralpha
). - Added
stat
argument back for flexibility. - Added
linetype_title
,shape_title
, andsize_title
arguments. - Added
str_keep_seq
helper function to support keeping labels in a sequence. - Breaking: made horizontal y characters and factors plot values from low at bottom to high at top.
- Breaking: removed
lower
,middle
,upper
,xlower
,xmiddle
, andxupper
arguments fromgg_blank
. - Updated
*_breaks
defaults. - Made plot order logical variables with
TRUE
first. - Added
pal_discrete2
with 6 colour blind safe colours for a light background theme.
ggblanket 4.0.0
CRAN release: 2023-08-08
- Breaking: removed the
stat
argument for allgg_*
functions exceptgg_blank
. - Breaking: renamed
pal_hue
topal_discrete
and made colours relatively red/green colour blind safe. - Breaking: renamed
gg_bin2d
togg_bin_2d
. - Breaking: changed
*_oob
default back toscales::oob_keep
. - Improved scales to work better with transformations, limits, breaks etc.
- Added
gg_contour
,gg_contour_filled
,gg_density2d
,gg_density2d_filled
functions. - Made default to keep unused factors across all scales and facets.
- Made default continuous label function to drop trailing zeros.
- Made default legend place simpler: bottom, unless continuous. Otherwise right.
- Added
text
aesthetic in forplotly::ggplotly
.
ggblanket 3.0.0
CRAN release: 2023-06-30
- New theme functions:
light_mode
anddark_mode
. - Breaking: removed
gg_theme
. - Breaking: renamed
*_grid
arguments to*_gridlines
. - Breaking: removed
void
argument. - Breaking: removed
gg_function
. - Breaking: made
col_rescale
require a function (e.g.scales::rescale()
). - Added
facet_switch
argument. - Made
col_legend_place = "none"
only remove the col legend. - Made
gg_bin2d
andgg_hex
scales calculate in the same way as other functions. - For raster, removed col aesthetic so that legend would work.
- Improved
gg_sf
defaultalpha
. - Supported
gg_sf
to work with non-standard named geometry. - Thanks Nik Mitchell and Rosie Percival for feedback.
ggblanket 2.0.0
CRAN release: 2023-05-26
- Made ggblanket work better with adding layers.
- Made the
pal
no longer inherit to layers where nocol
aesthetic. - Made x and y scales work better, including with NA in the limits.
- Added 2 colours to
pal_hue
. - Breaking: changed default
*oob
argument toscales::oob_censor
. - Breaking: changed default
coord
argument to includeclip = "off"
argument. - Breaking: removed
add_tooltip
function. - Breaking: changed pal functions to
pal_blue
,pal_grey
, andpal_hue
.
ggblanket 1.7.0
CRAN release: 2023-03-06
- Updated
gg_theme
default axis-line and gridline thickness. - Supported named
pal
vectors. - Removed
clip
argument. - Added in
coord
argument. - Added in
*_oob
arguments. - Improved how
*_limits
works. - Removed default gridlines for
gg_sf
. - Fixed bug with default
x_expand
. - Fixed bug with
gg_histogram
scales. - Critical fix to support dplyr 1.1.0.
- Supported colouring date, datetime and time variables.
- Made datetime breaks default to waiver.
- Breaking: removed
void
argument fromgg_theme
. - Corrected bug with
gg_raster
legend not showing. - Updated
gg_raster
*_limits
and*_expand
defaults. - Internal function to make infinite values NA made compatible with dplyr 1.1.0 (#269, @DavisVaughan)
ggblanket 1.6.0
CRAN release: 2022-11-18
- Breaking: renamed
add_tooltip_text
toadd_tooltip
and changed column name to “tooltip”. - Breaking:
coord
argument removed. - Added
clip
argument and defaulted to “on”. - Made
x
andy
limits also act within the coord. - Made
gg_blank
more powerful and flexible. - Improved horizontal flipped plot scales.
- Fixed bugs relating to free
facet_scales
and scale limits. - Improved vignette.
ggblanket 1.5.0
CRAN release: 2022-10-14
- Breaking: redesigned
gg_theme
. - Added automatic gridline removal.
- Added
gg_bin2d
function. - Added
gg_hex
function. - Added
col_trans
andcol_rescale
arguments. - Made
col_legend_place
default “r” where numeric col variable. - Made
*_title = ""
equivalent to+ labs(* = NULL)
. - Supported
x
andy
datetime variables. - Supported
x
andy
time variables. - Redesigned internal code for
x
,y
andcol
scales.
ggblanket 1.4.0
CRAN release: 2022-09-02
- Breaking: Removed
col_intervals
argument. - Breaking: Removed
*_oob
argument. - Breaking: In
gg_theme
, changed*_style
arguments to*_face
. - Breaking: In
gg_theme
, changedfont
arguments tofamily
. - Added
gg_polygon
function. - Added
col_continuous
argument to support colouring by “steps”. - Added
col_legend_rev
argument to reverse legends. - Added
facet_layout
argument for more faceting flexibility. - Added
facet_space
argument to support proportional facet panels. - Removed
width
default. - Improved default legend look for where continuous gradient.
- Improved scales where
y
is NULL and plot is horizontal. - Fixed bug with
position = "fill"
. - Updated messages.
- Added vignette.
ggblanket 1.3.0
CRAN release: 2022-08-05
- Breaking: removed
facet_intervals
argument. - Breaking: made extensive changes to
gg_theme
function. - Added
facet2
aesthetic in to support effortless grid faceting. - Changed default background theme colours.
- Fixed bug with
*_limits
and*_include
not working correctly. - Added
*_sec_axis
arguments. - Changed
*_oob
default toscales::oob_keep
. - Removed reversal of logical variable order.
- Defaulted
col_legend_place
to"b"
.
ggblanket 1.2.0
CRAN release: 2022-07-01
- Breaking: Removed
*_breaks_n
and*_breaks_width
. - Added support for
*_breaks
to receive a function. - Added
*_include
argument. - Added
*_trans
argument. - Modified default
x_breaks
behaviour for when both x and y are numeric or date. - Enhanced
gg_blank
to work with only one x or y. - Provided support for
ggplotly
. - Added new
add_tooltip_text
function. - Added new
titles
argument to apply a function across titles. - Support
gg_
functions working with more stats. - Removed
size
argument, in anticipation of ggplot2 3.4.0. - Updated
gg_theme
title vjust and margins.