Skip to content

Commit f532822

Browse files
committed
chore(CellStatPlot): improve error messages for 'group_by' and 'rows_by' parameters in pie heatmap
1 parent 9551185 commit f532822

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/cellstatplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ CellStatPlot.data.frame <- function(
542542
split_by = split_by, facet_by = facet_by, ...)
543543
} else if (plot_type == "pies") {
544544
if (is.null(group_by)) {
545-
stop("Cannot create a heatmap (cell_type = 'pie') plot without specifying 'group_by'.")
545+
stop("Cannot create a heatmap (cell_type = 'pie') plot without specifying 'group_by' (works as columns of the plot).")
546546
}
547547
if (is.null(rows_by)) {
548-
stop("Cannot create a heatmap (cell_type = 'pie') plot without specifying 'rows_by'.")
548+
stop("Cannot create a heatmap (cell_type = 'pie') plot without specifying 'rows_by' (works as rows of the plot).")
549549
}
550550
if (!is.null(facet_by)) {
551551
stop("Cannot create a heatmap (cell_type = 'pie') plot with 'facet_by'.")

0 commit comments

Comments
 (0)