Skip to content

Commit a1c74bc

Browse files
author
koneill
committed
Minor tweaks per #1519 (comment)
1 parent 00e4a1d commit a1c74bc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ggplot2 2.0.0.9000
22

3+
* `theme_update()` now uses the `+` operator instead of `%+replace%`, so that
4+
unspecified values will no longer be `NULL`ed out. `theme_replace()`
5+
preserves the old behaviour if desired.
6+
37
* `layer()` now accepts a function as the data argument. The function will be
48
applied to the data passed to the `ggplot()` function and must return a
59
data.frame (#1527).

R/theme.r

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@
4646
#' theme(legend.background = element_rect(fill = "white", colour = "white", size = 3))
4747
#'
4848
theme_update <- function(...) {
49-
# Make a call to theme, then add to theme
5049
theme_set(theme_get() + theme(...))
5150
}
5251

5352
#' @rdname theme_update
5453
#' @export
55-
5654
theme_replace <- function(...) {
57-
# Make a call to theme, then add to theme
5855
theme_set(theme_get() %+replace% theme(...))
5956
}
6057

man/stat_summary.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)