Skip to content

Commit c2f2ffa

Browse files
committed
fix(ClonalLengthPlot): ensure quantile breaks are unname'd (actual number instead of percentile)
1 parent 0ec407d commit c2f2ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/clonalcompositionplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ ClonalLengthPlot <- function(
330330
args$ylab <- ylab %||% default_ylab
331331
args$theme_args <- args$theme_args %||% list()
332332
args$theme_args$panel.grid.major.x <- element_blank()
333-
breaks <- quantile(data$length, probs = seq(0, 1, length.out = x_nbreaks), type = 3)
333+
breaks <- unname(quantile(data$length, probs = seq(0, 1, length.out = x_nbreaks), type = 3))
334334
if (is.null(args$split_by)) {
335335
suppressMessages({
336336
do.call(BarPlot, args) + scale_x_discrete(breaks = breaks)

0 commit comments

Comments
 (0)