Skip to content

Commit 04a85c4

Browse files
committed
Try to output shaded-p-value in appropriate size for HTML in Ch11 + redirects
1 parent 7b873d5 commit 04a85c4

5 files changed

+12
-6
lines changed

11-tell-your-story-with-data.Rmd

+7-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,13 @@ ggsave(filename = "images/null_housing_shaded.png",
684684
```
685685

686686
```{r echo=FALSE, out.height="100%"}
687-
knitr::include_graphics("images/null_housing_shaded.png")
687+
if(is_latex_output())
688+
knitr::include_graphics("images/null_housing_shaded.png")
689+
```
690+
691+
```{r echo=FALSE}
692+
if(is_html_output())
693+
null_housing_shaded
688694
```
689695

690696
Of the regressors, it appears that only `log10_size` has a statistically significant relationship with `log10_price`. This is evidenced by the fact that the observed fit value for `log10_size` is far outside the range of the null distribution.

_redirects

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/v2 https://moderndive-v2.netlify.app 301!
1+
/v2 /v2/ 301!

images/null_housing_shaded.png

1.02 KB
Loading

images/patchwork_boxplot.png

32.1 KB
Loading

index.Rmd

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ if (!dir.exists("docs/v2")) {
129129
dir.create("docs/v2")
130130
}
131131
132-
# Copy over the 404.html file
133-
# file.copy("404.html", "docs", overwrite = TRUE)
132+
# Copy over the _redirects file
133+
file.copy("_redirects", "docs/v2", overwrite = TRUE)
134134
135135
# Make sure all images copy to docs folder
136136
if (!dir.exists(here::here("docs", "images"))) {
@@ -263,16 +263,16 @@ dev_version <- FALSE
263263
This is the [website](https://moderndive.com/v2/) for *Statistical Inference via Data Science: A ModernDive into R and the Tidyverse (Second Edition)*! Visit the [GitHub repository for this site](https://github.com/moderndive/ModernDive_book/tree/v2/). It will be published as a print copy by CRC Press soon! You can find a summary of the updates in this version [here](https://moderndive.com/v2/preface.html#about-the-book).
264264
```
265265

266+
<div class="book-cover">
266267
```{r echo=FALSE, purl=FALSE}
267268
if (is_html_output()) {
268-
cat('<div class="book-cover">')
269269
include_image(
270270
path = "images/logos/v2/v2_cover_2024-09-29.png",
271271
html_opts = "width=350px"
272272
)
273-
cat('</div>')
274273
}
275274
```
275+
</div>
276276

277277
```{block, include=is_html_output(), purl=FALSE}
278278
The First Edition of this book is available at https://moderndive.com. You can find the printed copy of the First Edition on [Amazon](https://www.amazon.com/Statistical-Inference-via-Data-Science/dp/0367409828/). You can also purchase it at [CRC Press](https://www.routledge.com/Statistical-Inference-via-Data-Science-A-ModernDive-into-R-and-the-Tidyverse/Ismay-Kim/p/book/9780367409821?utm_source=author&utm_medium=shared_link&utm_campaign=B043134_jm1_5ll_6rm_t081_1al_statisticalinferenceviadatascienceauthorshare).

0 commit comments

Comments
 (0)