Skip to content

Commit 8db838f

Browse files
gravestim7prgithub-actions[bot]
authored
update tests and docs (#239)
Co-authored-by: m7pr <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d1b502c commit 8db838f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/draw_boxplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ draw_boxplot <- function(object,
8888
p + geom_boxplot(outlier.shape = ifelse(jitter, NA, 19)) +
8989
stat_boxplot(geom = "errorbar")
9090
} else {
91-
p + geom_violin(draw_quantiles = c(0.75, 0.5, 0.25))
91+
p + geom_violin(quantiles.linetype = c(0.75, 0.5, 0.25))
9292
}
9393
dodge_width <- ifelse(violin, 0.9, 0.75)
9494
jitter_width <- if (jitter) NULL else 0

tests/testthat/test-differential.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ test_that("autoplot for HermesDataDiffExpr works as expected with custom options
128128
dat <- hermes_data
129129
colData(dat) <- df_cols_to_factor(colData(dat))
130130
object <- diff_expression(dat, "SEX", "voom")
131-
result <- autoplot(object, adj_p_val_thresh = 0.92, log2_fc_thresh = 3)
131+
result <- autoplot(object, adj_p_val_thresh = 0.9206, log2_fc_thresh = 3)
132132

133133
x <- layer_data(result, 1)
134134
x <- x[!is.na(x$label), ]
135135
expect_equal(x$x, c(-3.44, -3.19, 3.39, 3.21, 3.8, 3.12, -3.13), tolerance = 1e-2)
136-
expect_equal(x$y, rep(0.04008, 7), tolerance = 1e-2)
136+
expect_equal(x$y, rep(0.04, 7), tolerance = 5e-2)
137137
expect_identical(
138138
x$label,
139139
c(

0 commit comments

Comments
 (0)