You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+49-13Lines changed: 49 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
*`annotation_raster()` adds support for native rasters. For large rasters,
2
+
native rasters render significantly faster than arrays (@kent37, #3388)
3
+
4
+
* Support graphics devices that use the `file` argument instead of `fileneame`
5
+
in `ggsave()` (@bwiernik, #3810)
6
+
1
7
# ggplot2 3.3.0
2
8
3
9
This is a minor release but does contain a range of substantial new features,
@@ -372,7 +378,10 @@ as the tidyverse is committed to support 5 major versions of R.
372
378
373
379
## Breaking changes
374
380
375
-
This is a minor release and breaking changes have been kept to a minimum. End users of ggplot2 are unlikely to encounter any issues. However, there are a few items that developers of ggplot2 extensions should be aware of. For additional details, see also the discussion accompanying issue #2890.
381
+
This is a minor release and breaking changes have been kept to a minimum. End users of
382
+
ggplot2 are unlikely to encounter any issues. However, there are a few items that developers
383
+
of ggplot2 extensions should be aware of. For additional details, see also the discussion
384
+
accompanying issue #2890.
376
385
377
386
* In non-user-facing internal code (specifically in the `aes()` function and in
378
387
the `aesthetics` argument of scale functions), ggplot2 now always uses the British
@@ -972,25 +981,45 @@ This is a minor release and breaking changes have been kept to a minimum. End us
972
981
973
982
### Subtitle and caption
974
983
975
-
Thanks to @hrbrmstr plots now have subtitles and captions, which can be set with the `subtitle` and `caption` arguments to `ggtitle()` and `labs()`. You can control their appearance with the theme settings `plot.caption` and `plot.subtitle`. The main plot title is now left-aligned to better work better with a subtitle. The caption is right-aligned (@hrbrmstr).
984
+
Thanks to @hrbrmstr plots now have subtitles and captions, which can be set with
985
+
the `subtitle` and `caption` arguments to `ggtitle()` and `labs()`. You can
986
+
control their appearance with the theme settings `plot.caption` and
987
+
`plot.subtitle`. The main plot title is now left-aligned to better work better
988
+
with a subtitle. The caption is right-aligned (@hrbrmstr).
976
989
977
990
### Stacking
978
991
979
-
`position_stack()` and `position_fill()` now sort the stacking order to match grouping order. This allows you to control the order through grouping, and ensures that the default legend matches the plot (#1552, #1593). If you want the opposite order (useful if you have horizontal bars and horizontal legend), you can request reverse stacking by using `position = position_stack(reverse = TRUE)` (#1837).
992
+
`position_stack()` and `position_fill()` now sort the stacking order to match
993
+
grouping order. This allows you to control the order through grouping, and
994
+
ensures that the default legend matches the plot (#1552, #1593). If you want the
995
+
opposite order (useful if you have horizontal bars and horizontal legend), you
996
+
can request reverse stacking by using `position = position_stack(reverse = TRUE)`
997
+
(#1837).
980
998
981
-
`position_stack()` and `position_fill()` now accepts negative values which will create stacks extending below the x-axis (#1691).
999
+
`position_stack()` and `position_fill()` now accepts negative values which will
1000
+
create stacks extending below the x-axis (#1691).
982
1001
983
-
`position_stack()` and `position_fill()` gain a `vjust` argument which makes it easy to (e.g.) display labels in the middle of stacked bars (#1821).
1002
+
`position_stack()` and `position_fill()` gain a `vjust` argument which makes it
1003
+
easy to (e.g.) display labels in the middle of stacked bars (#1821).
984
1004
985
1005
### Layers
986
1006
987
-
`geom_col()` was added to complement `geom_bar()` (@hrbrmstr). It uses `stat="identity"` by default, making the `y` aesthetic mandatory. It does not support any other `stat_()` and does not provide fallback support for the `binwidth` parameter. Examples and references in other functions were updated to demonstrate `geom_col()` usage.
1007
+
`geom_col()` was added to complement `geom_bar()` (@hrbrmstr). It uses
1008
+
`stat="identity"` by default, making the `y` aesthetic mandatory. It does not
1009
+
support any other `stat_()` and does not provide fallback support for the
1010
+
`binwidth` parameter. Examples and references in other functions were updated to
1011
+
demonstrate `geom_col()` usage.
988
1012
989
-
When creating a layer, ggplot2 will warn if you use an unknown aesthetic or an unknown parameter. Compared to the previous version, this is stricter for aesthetics (previously there was no message), and less strict for parameters (previously this threw an error) (#1585).
1013
+
When creating a layer, ggplot2 will warn if you use an unknown aesthetic or an
1014
+
unknown parameter. Compared to the previous version, this is stricter for
1015
+
aesthetics (previously there was no message), and less strict for parameters
1016
+
(previously this threw an error) (#1585).
990
1017
991
1018
### Facetting
992
1019
993
-
The facet system, as well as the internal panel class, has been rewritten in ggproto. Facets are now extendable in the same manner as geoms and stats, as described in `vignette("extending-ggplot2")`.
1020
+
The facet system, as well as the internal panel class, has been rewritten in
1021
+
ggproto. Facets are now extendable in the same manner as geoms and stats, as
1022
+
described in `vignette("extending-ggplot2")`.
994
1023
995
1024
We have also added the following new fatures.
996
1025
@@ -1012,7 +1041,10 @@ We have also added the following new fatures.
1012
1041
1013
1042
### Extensions
1014
1043
1015
-
Unfortunately there was a major oversight in the construction of ggproto which lead to extensions capturing the super object at package build time, instead of at package run time (#1826). This problem has been fixed, but requires re-installation of all extension packages.
1044
+
Unfortunately there was a major oversight in the construction of ggproto which
1045
+
lead to extensions capturing the super object at package build time, instead of
1046
+
at package run time (#1826). This problem has been fixed, but requires
1047
+
re-installation of all extension packages.
1016
1048
1017
1049
## Scales
1018
1050
@@ -1047,7 +1079,10 @@ Unfortunately there was a major oversight in the construction of ggproto which l
1047
1079
1048
1080
### Discrete scales
1049
1081
1050
-
The treatment of missing values by discrete scales has been thoroughly overhauled (#1584). The underlying principle is that we can naturally represent missing values on discrete variables (by treating just like another level), so by default we should.
1082
+
The treatment of missing values by discrete scales has been thoroughly
1083
+
overhauled (#1584). The underlying principle is that we can naturally represent
1084
+
missing values on discrete variables (by treating just like another level), so
1085
+
by default we should.
1051
1086
1052
1087
This principle applies to:
1053
1088
@@ -1378,7 +1413,8 @@ There were a number of tweaks to the theme elements that control legends:
1378
1413
1379
1414
### Extensibility
1380
1415
1381
-
There is now an official mechanism for defining Stats, Geoms, and Positions in other packages. See `vignette("extending-ggplot2")` for details.
1416
+
There is now an official mechanism for defining Stats, Geoms, and Positions in
1417
+
other packages. See `vignette("extending-ggplot2")` for details.
1382
1418
1383
1419
* All Geoms, Stats and Positions are now exported, so you can inherit from them
1384
1420
when making your own objects (#989).
@@ -1449,7 +1485,7 @@ A number of geoms have been renamed to be internally consistent:
1449
1485
to `geom_density_2d()`/`stat_density_2d()`.
1450
1486
1451
1487
* `stat_spoke()` is now `geom_spoke()` since I realised it'sa
1452
-
reparameterisationof `geom_segment().
1488
+
reparameterisationof`geom_segment()`.
1453
1489
1454
1490
*`stat_bindot()`hasbeenremovedbecauseit's so tightly coupled to
1455
1491
`geom_dotplot()`. If you happened to use `stat_bindot()`, just change to
0 commit comments