We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4077e commit 7c6d056Copy full SHA for 7c6d056
R/geom-.r
@@ -78,7 +78,7 @@ Geom <- ggproto("Geom",
78
# Trim off extra parameters
79
params <- params[intersect(names(params), self$parameters())]
80
81
- if (length(levels(data$PANEL)) > 1L) {
+ if (nlevels(as.factor(data$PANEL)) > 1L) {
82
data_panels <- split(data, data$PANEL)
83
} else {
84
data_panels <- list(data)
0 commit comments