Skip to content

Commit 2c34b72

Browse files
committed
Bug fix in VisualizeDesign (horizontal/vertical lines - adapt to ggplot2 4.0.0)
1 parent 472cec6 commit 2c34b72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: ExploreModelMatrix
22
Type: Package
33
Title: Graphical Exploration of Design Matrices
4-
Version: 1.21.1
5-
Date: 2025-09-30
4+
Version: 1.21.2
5+
Date: 2025-10-07
66
Authors@R: c(person("Charlotte", "Soneson", role = c("aut", "cre"),
77
email = "charlottesoneson@gmail.com",
88
comment = c(ORCID = "0000-0003-3833-2169")),

R/VisualizeDesign.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ VisualizeDesign <- function(sampleData, designFormula = NULL,
344344
ggplot2::theme_bw() +
345345
ggplot2::geom_hline(yintercept = 0.5 +
346346
seq_len(length(unique(
347-
sampleData[[plot_terms[1]]])) - 1)) +
347+
w[[plot_terms[1]]])) - 1)) +
348348
ggplot2::theme(
349349
panel.grid.major = ggplot2::element_blank(),
350350
panel.grid.minor = ggplot2::element_blank(),
@@ -356,7 +356,7 @@ VisualizeDesign <- function(sampleData, designFormula = NULL,
356356
gg <- gg +
357357
ggplot2::geom_vline(xintercept = 0.5 +
358358
seq_len(length(unique(
359-
sampleData[[plot_terms[2]]])) - 1))
359+
w[[plot_terms[2]]])) - 1))
360360
} else {
361361
if (flipCoordFitted) {
362362
gg <- gg + theme(axis.text.y = element_blank(),

0 commit comments

Comments
 (0)