Skip to content

Commit 0137a4d

Browse files
authored
Fix missing backticks and newlines in NEWS.md (#3742)
1 parent 6207d2f commit 0137a4d

File tree

1 file changed

+43
-13
lines changed

1 file changed

+43
-13
lines changed

NEWS.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ as the tidyverse is committed to support 5 major versions of R.
337337

338338
## Breaking changes
339339

340-
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.
340+
This is a minor release and breaking changes have been kept to a minimum. End users of
341+
ggplot2 are unlikely to encounter any issues. However, there are a few items that developers
342+
of ggplot2 extensions should be aware of. For additional details, see also the discussion
343+
accompanying issue #2890.
341344

342345
* In non-user-facing internal code (specifically in the `aes()` function and in
343346
the `aesthetics` argument of scale functions), ggplot2 now always uses the British
@@ -937,25 +940,45 @@ This is a minor release and breaking changes have been kept to a minimum. End us
937940
938941
### Subtitle and caption
939942
940-
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).
943+
Thanks to @hrbrmstr plots now have subtitles and captions, which can be set with
944+
the `subtitle` and `caption` arguments to `ggtitle()` and `labs()`. You can
945+
control their appearance with the theme settings `plot.caption` and
946+
`plot.subtitle`. The main plot title is now left-aligned to better work better
947+
with a subtitle. The caption is right-aligned (@hrbrmstr).
941948
942949
### Stacking
943950
944-
`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).
951+
`position_stack()` and `position_fill()` now sort the stacking order to match
952+
grouping order. This allows you to control the order through grouping, and
953+
ensures that the default legend matches the plot (#1552, #1593). If you want the
954+
opposite order (useful if you have horizontal bars and horizontal legend), you
955+
can request reverse stacking by using `position = position_stack(reverse = TRUE)`
956+
(#1837).
945957
946-
`position_stack()` and `position_fill()` now accepts negative values which will create stacks extending below the x-axis (#1691).
958+
`position_stack()` and `position_fill()` now accepts negative values which will
959+
create stacks extending below the x-axis (#1691).
947960
948-
`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).
961+
`position_stack()` and `position_fill()` gain a `vjust` argument which makes it
962+
easy to (e.g.) display labels in the middle of stacked bars (#1821).
949963
950964
### Layers
951965
952-
`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.
966+
`geom_col()` was added to complement `geom_bar()` (@hrbrmstr). It uses
967+
`stat="identity"` by default, making the `y` aesthetic mandatory. It does not
968+
support any other `stat_()` and does not provide fallback support for the
969+
`binwidth` parameter. Examples and references in other functions were updated to
970+
demonstrate `geom_col()` usage.
953971
954-
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).
972+
When creating a layer, ggplot2 will warn if you use an unknown aesthetic or an
973+
unknown parameter. Compared to the previous version, this is stricter for
974+
aesthetics (previously there was no message), and less strict for parameters
975+
(previously this threw an error) (#1585).
955976
956977
### Facetting
957978
958-
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")`.
979+
The facet system, as well as the internal panel class, has been rewritten in
980+
ggproto. Facets are now extendable in the same manner as geoms and stats, as
981+
described in `vignette("extending-ggplot2")`.
959982
960983
We have also added the following new fatures.
961984
@@ -977,7 +1000,10 @@ We have also added the following new fatures.
9771000
9781001
### Extensions
9791002
980-
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.
1003+
Unfortunately there was a major oversight in the construction of ggproto which
1004+
lead to extensions capturing the super object at package build time, instead of
1005+
at package run time (#1826). This problem has been fixed, but requires
1006+
re-installation of all extension packages.
9811007
9821008
## Scales
9831009
@@ -1012,7 +1038,10 @@ Unfortunately there was a major oversight in the construction of ggproto which l
10121038
10131039
### Discrete scales
10141040
1015-
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.
1041+
The treatment of missing values by discrete scales has been thoroughly
1042+
overhauled (#1584). The underlying principle is that we can naturally represent
1043+
missing values on discrete variables (by treating just like another level), so
1044+
by default we should.
10161045
10171046
This principle applies to:
10181047
@@ -1343,7 +1372,8 @@ There were a number of tweaks to the theme elements that control legends:
13431372
13441373
### Extensibility
13451374
1346-
There is now an official mechanism for defining Stats, Geoms, and Positions in other packages. See `vignette("extending-ggplot2")` for details.
1375+
There is now an official mechanism for defining Stats, Geoms, and Positions in
1376+
other packages. See `vignette("extending-ggplot2")` for details.
13471377
13481378
* All Geoms, Stats and Positions are now exported, so you can inherit from them
13491379
when making your own objects (#989).
@@ -1414,7 +1444,7 @@ A number of geoms have been renamed to be internally consistent:
14141444
to `geom_density_2d()`/`stat_density_2d()`.
14151445
14161446
* `stat_spoke()` is now `geom_spoke()` since I realised it's a
1417-
reparameterisation of `geom_segment().
1447+
reparameterisation of `geom_segment()`.
14181448

14191449
* `stat_bindot()` has been removed because it's so tightly coupled to
14201450
`geom_dotplot()`. If you happened to use `stat_bindot()`, just change to
@@ -1583,7 +1613,7 @@ version of ggplot.
15831613

15841614
* `geom_smooth()` gains explicit `method`, `se` and `formula` arguments.
15851615

1586-
* `geom_histogram()` gains `binwidth`, `bins`, origin` and `right`
1616+
* `geom_histogram()` gains `binwidth`, `bins`, `origin` and `right`
15871617
arguments.
15881618

15891619
* `geom_jitter()` gains `width` and `height` arguments to make it easier

0 commit comments

Comments
 (0)