Skip to content

Commit 00d21e3

Browse files
authored
Merge pull request #31 from LilianBonnaf/main => fix #30
fix(theme): replace deprecated size with linewidth in element_line
2 parents 054194e + 2e9d451 commit 00d21e3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

R/gg_temp_ipr.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,11 @@ gg_temp_ipr <- function(df_ipr,
203203
axis.text.x = element_text(angle = 45, hjust = 1),
204204
panel.grid.minor = ggplot2::element_blank(),
205205
panel.grid.major.x = ggplot2::element_blank(),
206-
panel.grid.major.y = ggplot2::element_line(color = "lightgrey", size = .25),
206+
panel.grid.major.y = if (utils::packageVersion("ggplot2") >= "3.4.0") {
207+
ggplot2::element_line(color = "lightgrey", linewidth = 0.25)
208+
} else {
209+
ggplot2::element_line(color = "lightgrey", size = 0.25)
210+
},
207211
panel.background = ggplot2::element_blank(),
208212
strip.background = ggplot2::element_blank())
209213
# orientation de l'axe des IPR selon l'argument inv_y

0 commit comments

Comments
 (0)