Skip to content

Commit

Permalink
try quarto webr
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakillo committed Nov 25, 2023
1 parent 377e623 commit bcb11fa
Show file tree
Hide file tree
Showing 15 changed files with 4,431 additions and 0 deletions.
1,203 changes: 1,203 additions & 0 deletions docs/lm_webR.html

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions docs/lm_webR.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: "Linear models"
author: "Francisco Rodríguez-Sánchez"
engine: knitr
format: html
filters:
- webr
webr:
packages: ['visreg']
autoload-packages: false
channel-type: "post-message"
---

## Example dataset: forest trees

- Download [this dataset](https://raw.githubusercontent.com/Pakillo/LM-GLM-GLMM-intro/trees/data/trees.csv) (or the entire [zip file](https://github.com/Pakillo/LM-GLM-GLMM-intro/raw/trees/datasets.zip))

- Import:

```{webr-r}
trees <- read.csv("data/trees.csv")
head(trees)
```


## Questions

\Large

- What is the relationship between DBH and height?

\vspace{5mm}

- Do taller trees have bigger trunks?

\vspace{5mm}

- Can we predict height from DBH? How well?



# Always plot your data first!


## Always plot your data first!

```{webr-r}
#| echo: false
library("knitr")
include_graphics("images/anscombe.png")
```



## Exploratory Data Analysis (EDA)

Outliers

```{webr-r }
plot(trees$height)
```
2,018 changes: 2,018 additions & 0 deletions docs/lm_webR_files/libs/bootstrap/bootstrap-icons.css

Large diffs are not rendered by default.

Binary file not shown.
10 changes: 10 additions & 0 deletions docs/lm_webR_files/libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/lm_webR_files/libs/bootstrap/bootstrap.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/lm_webR_files/libs/clipboard/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions docs/lm_webR_files/libs/quarto-html/anchor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/lm_webR_files/libs/quarto-html/popper.min.js

Large diffs are not rendered by default.

203 changes: 203 additions & 0 deletions docs/lm_webR_files/libs/quarto-html/quarto-syntax-highlighting.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bcb11fa

Please sign in to comment.