Skip to content

Commit d6aca63

Browse files
committed
Add translate_string_shape to GeomSf. Fixes #5808
1 parent c1b6275 commit d6aca63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/geom-sf.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ GeomSf <- ggproto("GeomSf", Geom,
200200
if (!inherits(coord, "CoordSf")) {
201201
cli::cli_abort("{.fn {snake_class(self)}} can only be used with {.fn coord_sf}.")
202202
}
203+
if (is.character(data$shape)) {
204+
data$shape <- translate_shape_string(data$shape)
205+
}
203206

204207
data <- coord$transform(data, panel_params)
205208

0 commit comments

Comments
 (0)