From d73b3ada61e7f19ccaa909919061191bc3ed2b0c Mon Sep 17 00:00:00 2001 From: tpob Date: Sun, 4 Aug 2024 10:26:05 +0800 Subject: [PATCH] fix boxplot alignment issue, resolve #195 --- R/Boxplot.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/Boxplot.R b/R/Boxplot.R index 3939e25..470dde6 100644 --- a/R/Boxplot.R +++ b/R/Boxplot.R @@ -38,7 +38,7 @@ BoxPlotsPlot <- function(bdat, att, att_color){ col <- match(att, colnames(bdat)) colnames(bdat)[col] <- "attribute" upper_xlim <- as.numeric((max(bdat$x) + 1)) - plot_lims <- as.numeric(0:upper_xlim) + plot_lims <- factor(as.numeric(0:upper_xlim)) bdat$x <- as.factor(bdat$x) boxplots <- ggplotGrob(ggplot() + theme_bw() +ylab(yaxis)