Skip to content

Commit 53e4aee

Browse files
committed
fix #286
1 parent 1993631 commit 53e4aee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/trace_generation.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ toBasic <- list(
354354
group2NA(g, "path")
355355
},
356356
boxplot=function(g) {
357-
# Preserve default colour values usign fill:
357+
# Preserve default colour values using fill:
358358
if (!is.null(g$data$fill)) {
359-
levels(g$prestats.data$fill) <- g$data$fill
360-
g$prestats.data$fill <- as.character(g$prestats.data$fill)
359+
g$prestats.data$fill <- NULL
360+
g$prestats.data <- plyr::join(g$prestats.data, g$data[c("x", "fill")], by = "x")
361361
}
362362
g$data <- g$prestats.data
363363
g

0 commit comments

Comments
 (0)