Skip to content

Commit 2a7cdf9

Browse files
committed
remove superfluous clip argument
1 parent aec5b40 commit 2a7cdf9

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

R/facet-.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ Facet <- ggproto("Facet", NULL,
153153

154154
table <- self$init_gtable(
155155
panels, layout, theme, ranges, params,
156-
aspect_ratio = aspect_ratio %||% coord$aspect(ranges[[1]]),
157-
clip = coord$clip
156+
aspect_ratio = aspect_ratio %||% coord$aspect(ranges[[1]])
158157
)
159158

160159
table <- self$attach_axes(table, layout, ranges, coord, theme, params)
@@ -198,7 +197,7 @@ Facet <- ggproto("Facet", NULL,
198197
data
199198
},
200199
init_gtable = function(panels, layout, theme, ranges, params,
201-
aspect_ratio = NULL, clip = "on") {
200+
aspect_ratio = NULL) {
202201

203202
# Initialise matrix of panels
204203
dim <- c(max(layout$ROW), max(layout$COL))
@@ -228,7 +227,7 @@ Facet <- ggproto("Facet", NULL,
228227
"layout", table,
229228
widths = widths, heights = heights,
230229
respect = !is.null(aspect_ratio),
231-
clip = clip, z = matrix(1, dim[1], dim[2])
230+
clip = "off", z = matrix(1, dim[1], dim[2])
232231
)
233232

234233
# Set panel names

tests/testthat/_snaps/facet-/facet-wrap-with-omitted-inner-axis-labels.svg

Lines changed: 0 additions & 9 deletions
Loading

tests/testthat/_snaps/facet-layout/axes-are-positioned-correctly-in-non-table-layout.svg

Lines changed: 0 additions & 18 deletions
Loading

0 commit comments

Comments
 (0)