Skip to content

Commit 652a431

Browse files
malcolmbarrettkarawoo
authored andcommitted
Make scale_shape_identity use ScaleContinuousIdentity (#3075)
* fix typo in scale_fill_idenity * update news * move to top of news * switch to issue number instead of PR * fix scale_shape_identity news item
1 parent 0d6d443 commit 652a431

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# ggplot2 3.1.0.9000
2+
3+
* `scale_shape_identity()` now works correctly with `guide = "legend"` (@malcolmbarrett, #3029)
24

35
* Facet strips on the left side of plots now have clipping turned on, preventing
46
text from running out of the strip and borders from looking thicker than for

R/scale-identity.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ scale_fill_identity <- function(..., guide = "none", aesthetics = "fill") {
8181
#' @export
8282
scale_shape_identity <- function(..., guide = "none") {
8383
sc <- continuous_scale("shape", "identity", identity_pal(), ..., guide = guide,
84-
super = ScaleDiscreteIdentity)
84+
super = ScaleContinuousIdentity)
8585

8686
sc
8787
}

0 commit comments

Comments
 (0)