Skip to content

Commit 2a5cac9

Browse files
Merge remote-tracking branch 'upstream/master' into use-ignore-empty-all
2 parents da92859 + 977cf87 commit 2a5cac9

File tree

13 files changed

+99
-318
lines changed

13 files changed

+99
-318
lines changed

.github/move.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Configuration for move-issues bot - https://github.com/dessant/move-issues
2+
3+
# Delete the command comment when it contains no other content
4+
deleteCommand: true
5+
6+
# Close the source issue after moving
7+
closeSourceIssue: true
8+
9+
# Lock the source issue after moving
10+
lockSourceIssue: false
11+
12+
# Mention issue and comment authors
13+
mentionAuthors: true
14+
15+
# Preserve mentions in the issue content
16+
keepContentMentions: true
17+
18+
# Set custom aliases for targets
19+
# aliases:
20+
# r: repo
21+
# or: owner/repo

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ matrix:
99
- r: devel
1010
- r: release
1111
env: USE_VDIFFR=true
12+
r_github_packages: lionel-/vdiffr
1213
- r: oldrel
1314
- r: 3.2
15+
env: R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
1416
- r: 3.1
15-
16-
# work around temporary travis + R 3.5 bug
17-
r_packages: devtools
18-
19-
# Install manually because dev vdiffr is not compatible with Appveyor yet
20-
r_github_packages: lionel-/vdiffr
17+
env: R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
2118

2219
# environment variables set for all builds
2320
env:

CONTRIBUTING.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ See http://docs.ggplot2.org/dev/vignettes/development.html for more details.
7979

8080
Pull requests will be evaluated against a seven point checklist:
8181

82-
1. __Motivation__. Your pull request should clearly and concisely motivates the
83-
need for change. Unfortunately neither Winston nor I have much time to
84-
work on ggplot2 these days, so you need to describe the problem and show
85-
how your pull request solves it as concisely as possible.
82+
1. __Motivation__. Your pull request should clearly and concisely motivate the
83+
need for change. Unfortunately neither Winston nor I have much time to
84+
work on ggplot2 these days, so you need to describe the problem and show
85+
how your pull request solves it as concisely as possible.
8686

87-
Also include this motivation in `NEWS` so that when a new release of
88-
ggplot2 comes out it's easy for users to see what's changed. Add your
89-
item at the top of the file and use markdown for formatting. The
90-
news item should end with `(@yourGithubUsername, #the_issue_number)`.
87+
Also include this motivation in `NEWS` so that when a new release of
88+
ggplot2 comes out it's easy for users to see what's changed. Add your
89+
item at the top of the file and use markdown for formatting. The
90+
news item should end with `(@yourGithubUsername, #the_issue_number)`.
9191

9292
1. __Only related changes__. Before you submit your pull request, please
9393
check to make sure that you haven't accidentally included any unrelated
@@ -124,8 +124,9 @@ Pull requests will be evaluated against a seven point checklist:
124124
to the appropriate function.
125125

126126
This seems like a lot of work but don't worry if your pull request isn't perfect.
127-
It's a learning process and members of the ggplot2 team will be on hand to help you out. A pull request is a process, and unless you've submitted a few in the past
128-
it's unlikely that your pull request will be accepted as is. All PRs require
127+
It's a learning process and members of the ggplot2 team will be on hand to help you
128+
out. A pull request ("PR") is a process, and unless you've submitted a few in the
129+
past it's unlikely that your pull request will be accepted as is. All PRs require
129130
review and approval from at least one member of the ggplot2 development team
130131
before merge.
131132

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ This is a minor release and breaking changes have been kept to a minimum. End us
5353
safer to feed data columns into `aes()` or into parameters of geoms or
5454
stats. However, doing so remains discouraged (@clauswilke, #2694).
5555

56+
* `coord_sf()` now also understands the `clip` argument, just like the other
57+
coords (@clauswilke, #2938).
58+
5659
* `fortify()` now displays a more informative error message for
5760
`grouped_df()` objects when dplyr is not installed (@jimhester, #2822).
5861

@@ -954,7 +957,7 @@ There were a number of tweaks to the theme elements that control legends:
954957
955958
## Major changes
956959
957-
* ggplot no longer throws an error if you your plot has no layers. Instead it
960+
* ggplot no longer throws an error if your plot has no layers. Instead it
958961
automatically adds `geom_blank()` (#1246).
959962
960963
* New `cut_width()` is a convenient replacement for the verbose

R/facet-wrap.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ NULL
1212
#' The variables can be named (the names are passed to `labeller`).
1313
#'
1414
#' For compatibility with the classic interface, can also be a
15-
#' formula or character vector. Use either a one sided formula, `~a
16-
#' + b`, or a character vector, `c("a", "b")`.
15+
#' formula or character vector. Use either a one sided formula, `~a + b`,
16+
#' or a character vector, `c("a", "b")`.
1717
#' @param nrow,ncol Number of rows and columns.
1818
#' @param scales Should scales be fixed (`"fixed"`, the default),
1919
#' free (`"free"`), or free in one dimension (`"free_x"`,

R/geom-bar.r

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
#' uses `stat_identity()`: it leaves the data as is.
1111
#'
1212
#' A bar chart uses height to represent a value, and so the base of the
13-
#' bar must always be shown to produce a valid visual comparison. Naomi Robbins
14-
#' has a nice
15-
#' \href{http://www.b-eye-network.com/view/index.php?cid=2468}{article on this
16-
#' topic}. This is why it doesn't make sense to use a log-scaled y axis with a
17-
#' bar chart.
13+
#' bar must always be shown to produce a valid visual comparison. This is why
14+
#' it doesn't make sense to use a log-scaled y axis with a bar chart.
1815
#'
1916
#' By default, multiple bars occupying the same `x` position will be stacked
2017
#' atop one another by [position_stack()]. If you want them to be dodged

R/plot-build.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ layer_grob <- function(plot, i = 1L) {
137137
#' to (e.g.) make the legend box 2 cm wide, or combine multiple plots into
138138
#' a single display, preserving aspect ratios across the plots.
139139
#'
140-
#' @seealso [print.ggplot()] and \code{link{benchplot}} for
140+
#' @seealso [print.ggplot()] and [benchplot()] for
141141
#' for functions that contain the complete set of steps for generating
142142
#' a ggplot2 plot.
143143
#' @return a [gtable()] object

R/sf.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ coord_sf <- function(xlim = NULL, ylim = NULL, expand = TRUE,
789789
crs = NULL, datum = sf::st_crs(4326),
790790
label_graticule = waiver(),
791791
label_axes = waiver(),
792-
ndiscr = 100, default = FALSE) {
792+
ndiscr = 100, default = FALSE, clip = "on") {
793793

794794
if (is.waive(label_graticule) && is.waive(label_axes)) {
795795
# if both `label_graticule` and `label_axes` are set to waive then we
@@ -830,7 +830,8 @@ coord_sf <- function(xlim = NULL, ylim = NULL, expand = TRUE,
830830
label_graticule = label_graticule,
831831
ndiscr = ndiscr,
832832
expand = expand,
833-
default = default
833+
default = default,
834+
clip = clip
834835
)
835836
}
836837

0 commit comments

Comments
 (0)