Skip to content

Commit

Permalink
add boxplots
Browse files Browse the repository at this point in the history
  • Loading branch information
dajmcdon committed Jan 31, 2024
1 parent 7c71739 commit 600d771
Show file tree
Hide file tree
Showing 8 changed files with 499 additions and 308 deletions.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _freeze/site_libs/revealjs/dist/theme/quarto.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions schedule/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ knitr::kable(tib)

## Lecture slides

* [Bootstrap](slides/bootstrap.qmd)
* [Cluster computing](slides/cluster-computing.qmd)
* [Giving presentations](slides/presentations.qmd)
* [Git and GitHub](slides/git.qmd)
* [Skills for graduate students](slides/grad-school.qmd)
* [Tips for organization](slides/organization.qmd)
* [Giving presentations](slides/presentations.qmd)
* [Time series](slides/time-series.qmd)
* [Unit tests](slides/unit-tests.qmd)
* [Bootstrap](slides/bootstrap.qmd)
* [Time series](slides/time-series.qmd)
* [Cluster computing](slides/cluster-computing.qmd)
* [Skills for graduate students](slides/grad-school.qmd)

## Handouts

Expand Down
25 changes: 23 additions & 2 deletions schedule/slides/presentations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,10 @@ g <- ggplot(tib, aes(method, mean, colour = method)) +
geom_point() +
scale_colour_viridis_d(option = "F", begin = .2, end = .8) +
scale_y_continuous(labels = scales::percent, expand = expansion(0)) +
coord_cartesian(ylim = c(0, .3)) +
coord_cartesian(ylim = c(0, .4)) +
ylab("Error") +
xlab("Method")
theme(legend.position = "none") +
xlab("")
g
```

Expand All @@ -375,6 +376,26 @@ Ran 50 simulations.
g + geom_linerange(aes(ymax = mean + sd, ymin = pmax(mean - sd, 0)))
```

## Example: Made up simulation results

Ran 50 simulations.

```{r}
#| echo: false
tib <- tib |>
rowwise() |>
mutate(samples = list(rnorm(50, mean, sd))) |>
unnest(samples)
ggplot(tib, aes(method, samples, fill = method)) +
geom_boxplot(alpha = .66, notch = TRUE) +
scale_fill_viridis_d(option = "F", begin = .2, end = .8) +
scale_y_continuous(labels = scales::percent, expand = expansion(0)) +
coord_cartesian(ylim = c(0, .4)) +
ylab("Error") +
theme(legend.position = "none") +
xlab("")
```


## Things you should do

Expand Down
5 changes: 0 additions & 5 deletions schedule/slides/themer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ dt {
font-size: 0.9em;
}

.slide-title {
font-size: 2em;
color: $primary;
}


.center-align {
text-align: center;
Expand Down

0 comments on commit 600d771

Please sign in to comment.