Skip to content

Commit

Permalink
Still...
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Sep 21, 2024
1 parent 8b45121 commit b270bcc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ jobs:
key: bookdown-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-

- name: Build HTML book
- name: Build PDF book
run: |
R -e 'bookdown::render_book(\"index.Rmd\", \"bookdown::bs4_book\")'
shell: Rscript {0}
R -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")'
- name: Build PDF book
- name: Build HTML book
run: |
R -e 'bookdown::render_book(\"index.Rmd\", \"bookdown::pdf_book\")'
shell: Rscript {0}
R -e 'bookdown::render_book("index.Rmd", "bookdown::bs4_book")'
# Deploy HTML to GitHub Pages if on main or master branch
- name: Deploy to GitHub pages 🚀
Expand Down
2 changes: 1 addition & 1 deletion 10-inference-for-regression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ We can now conduct hypothesis tests for the partial slopes in multiple linear re

We can visualize the $p$-values in the null distribution by comparing them to the observed test statistics. We do this by adding a `shade_p_value()` layer to the `visualize()` function.

```{r, fig.height=6, fig.width=6, fig.cap="Shaded p-values for the partial slopes in this multiple linear regression."}
```{r, fig.height=ifelse(knitr::is_latex_output(), 6, 8), fig.width=6, fig.cap="Shaded p-values for the partial slopes in this multiple linear regression."}
visualize(null_distribution_mlr) +
shade_p_value(obs_stat = observed_fit, direction = "two-sided")
```
Expand Down
2 changes: 1 addition & 1 deletion _includes/logo.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<html>
<img src="https://moderndive.com/wide_format.png" alt="ModernDive" style="max-width: 600px; display: block; margin: 0 auto; padding-top: 10px;">
<img src="https://moderndive.com/wide_format.png" alt="ModernDive" style="max-width: 550px; display: block; margin: 0 auto; padding-top: 10px;">
</html>
13 changes: 8 additions & 5 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ opts_chunk$set(
fig.pos = 'H',
fig.retina = 1,
fig.width = 6,
fig.asp = if(knitr::is_latex_output()) "2/3"
fig.asp = if(knitr::is_html_output()) "2/3"
)
```

Expand All @@ -80,7 +80,7 @@ needed_CRAN_pkgs <- c(
# Packages only used internally for bookdown book building
"devtools", "ggrepel", "here", "kableExtra", "mvtnorm", "patchwork",
"remotes", "rmarkdown", "sessioninfo", "viridis", "webshot"
"remotes", "rmarkdown", "sessioninfo", "viridis", "webshot", "gridExtra"
)
new_pkgs <- needed_CRAN_pkgs[!(needed_CRAN_pkgs %in% installed.packages())]
if (length(new_pkgs)) {
Expand All @@ -97,10 +97,13 @@ write_bib(
c(
.packages(),
"bookdown", "broom", "dplyr", "dygraphs", "fivethirtyeight", "ggplot2",
"ggplot2movies", "infer", "janitor", "kableExtra", "knitr", "moderndive",
# "nycflights13",
"ggplot2movies", "infer", "ISLR2",
"janitor", "kableExtra", "knitr", "moderndive",
# "nycflights13",
"nycflights23",
"readr", "rmarkdown", "skimr", "tibble", "tidyr", "tidyverse", "webshot"
"readr", "rmarkdown",
# "skimr",
"tibble", "tidyr", "tidyverse", "webshot"
),
here::here("bib", "packages.bib")
)
Expand Down

0 comments on commit b270bcc

Please sign in to comment.