Skip to content

Commit 66b9df7

Browse files
committed
No group computation in StatIdentity
1 parent 222d03f commit 66b9df7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/stat-identity.r

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ stat_identity <- function(mapping = NULL, data = NULL, geom = "point",
4141
#' @format NULL
4242
#' @usage NULL
4343
#' @export
44-
StatIdentity <- ggproto("StatIdentity", Stat)
44+
StatIdentity <- ggproto("StatIdentity", Stat,
45+
calculate_groups = function(data, scales, ...) {
46+
data
47+
}
48+
)

0 commit comments

Comments
 (0)