Skip to content

Feature Request: Add 'clip' argument to coord_sf() #2938

Closed
@bschneidr

Description

@bschneidr

Just as coord_map() has a clip argument (e.g. coord_map(clip = 'off')), it would be useful for coord_sf() to have a clip argument, too.

I think these are the two sections of the code that would need to be updated (ignoring the roxygen comments).

ggplot2/R/sf.R

Lines 788 to 792 in 3e1e6e4

coord_sf <- function(xlim = NULL, ylim = NULL, expand = TRUE,
crs = NULL, datum = sf::st_crs(4326),
label_graticule = waiver(),
label_axes = waiver(),
ndiscr = 100, default = FALSE) {

ggplot2/R/sf.R

Lines 825 to 835 in 3e1e6e4

ggproto(NULL, CoordSf,
limits = list(x = xlim, y = ylim),
datum = datum,
crs = crs,
label_axes = label_axes,
label_graticule = label_graticule,
ndiscr = ndiscr,
expand = expand,
default = default
)
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions