Skip to content

Commit ca61706

Browse files
committed
fix: include 'group_by' in grouping for bar plot in FeatureStatPlot
1 parent 98ece4b commit ca61706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/featurestatplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ FeatureStatPlot <- function(
254254
data, x = ident, y = ".value", group_by = group_by, split_by = split_by, facet_by = facet_by,
255255
xlab = xlab %||% "", ylab = ylab %||% "", x_text_angle = x_text_angle %||% 45, ...)
256256
} else if (plot_type == "bar") {
257-
data <- data %>% group_by(!!!syms(unique(c(ident, split_by, ".features")))) %>%
257+
data <- data %>% group_by(!!!syms(unique(c(ident, group_by, split_by, ".features")))) %>%
258258
summarise(.value = agg(!!sym(".value")))
259259
BarPlot(
260260
data, x = ident, y = ".value", group_by = group_by, split_by = split_by, facet_by = facet_by,

0 commit comments

Comments
 (0)