Skip to content

Commit acd01a0

Browse files
authored
Replace size by linewidth (#577)
* Replace size by linewidth * bump coverage cache version
1 parent 294062f commit acd01a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
shell: Rscript {0}
5757

5858
- name: Cache R packages
59-
uses: actions/cache@v1
59+
uses: actions/cache@v3
6060
with:
6161
path: ${{ env.R_LIBS_USER }}
6262
key: macOS-r-4.0-1-${{ hashFiles('.github/depends.Rds') }}

R/misc_theme_drwhy.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ theme_drwhy <- function() {
1818
plot.subtitle = element_text(color = "#371ea3", hjust = 0),
1919
axis.text = element_text(color = "#371ea3", size = 10),
2020
strip.text = element_text(color = "#371ea3", size = 12, hjust = 0),
21-
panel.grid.major.y = element_line(color = "grey90", size = 0.5, linetype = 1),
22-
panel.grid.minor.y = element_line(color = "grey90", size = 0.5, linetype = 1),
21+
panel.grid.major.y = element_line(color = "grey90", linewidth = 0.5, linetype = 1),
22+
panel.grid.minor.y = element_line(color = "grey90", linewidth = 0.5, linetype = 1),
2323
panel.grid.minor.x = element_blank(),
2424
panel.grid.major.x = element_blank())
2525

@@ -58,8 +58,8 @@ theme_drwhy_vertical <- function() {
5858
axis.title = element_text(color = "#371ea3"),
5959
axis.text = element_text(color = "#371ea3", size = 10),
6060
strip.text = element_text(color = "#371ea3", size = 12, hjust = 0),
61-
panel.grid.major.x = element_line(color = "grey90", size = 0.5, linetype = 1),
62-
panel.grid.minor.x = element_line(color = "grey90", size = 0.5, linetype = 1),
61+
panel.grid.major.x = element_line(color = "grey90", linewidth = 0.5, linetype = 1),
62+
panel.grid.minor.x = element_line(color = "grey90", linewidth = 0.5, linetype = 1),
6363
panel.grid.minor.y = element_blank(),
6464
panel.grid.major.y = element_blank())
6565
}

R/plot_model_diagnostics.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ plot.model_diagnostics <- function(x, ..., variable = "y_hat", yvariable = "resi
4848

4949
# add hline
5050
if (yvariable == "residuals")
51-
pl <- pl + geom_hline(yintercept = 0, color = "grey", lty = 2, size = 1)
51+
pl <- pl + geom_hline(yintercept = 0, color = "grey", lty = 2, linewidth = 1)
5252

5353
pl + ggtitle("Model diagnostics", paste0(variable, " against ", yvariable))
5454
}

0 commit comments

Comments
 (0)