Skip to content

Commit

Permalink
Extend list of x aesthetics
Browse files Browse the repository at this point in the history
So that they are symmetric with y aesthetics.
Needed for ggstance.
  • Loading branch information
lionel- committed Mar 1, 2016
1 parent 338e82a commit c9f276b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# ggplot2 2.1.0.9000

* `x` and `y` scales are now symmetric regarding the list of
aesthetics they accept: `xmin_final`, `xmax_final`, `xlower`,
`xmiddle` and `xupper` are now valid `x` aesthetics.

# ggplot2 2.1.0

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/scale-continuous.r
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ scale_x_continuous <- function(name = waiver(), breaks = waiver(),
limits = NULL, expand = waiver(), oob = censor,
na.value = NA_real_, trans = "identity") {
sc <- continuous_scale(
c("x", "xmin", "xmax", "xend", "xintercept"),
c("x", "xmin", "xmax", "xend", "xintercept", "xmin_final", "xmax_final", "xlower", "xmiddle", "xupper"),
"position_c", identity, name = name, breaks = breaks,
minor_breaks = minor_breaks, labels = labels, limits = limits,
expand = expand, oob = oob, na.value = na.value, trans = trans,
Expand Down

0 comments on commit c9f276b

Please sign in to comment.