Skip to content

Commit e8405bf

Browse files
authored
Merge pull request #26 from cct-datascience/center-figs2
Center figures
2 parents 3e3fc74 + 7f656a8 commit e8405bf

File tree

80 files changed

+19
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+19
-20
lines changed

2024/03-extensions/slides.qmd

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ editor: visual
2323

2424
## Packages
2525

26+
```{r}
27+
#| label: setup
28+
#| include: false
29+
knitr::opts_chunk$set(fig.align = "center")
30+
```
31+
2632
```{r}
2733
library(ggplot2)
2834
library(palmerpenguins) #for example dataset
@@ -335,7 +341,6 @@ penguins %>%
335341
336342
```
337343

338-
339344
## Ribbon plots
340345

341346
`stat_lineribbon` plots quantile intervals around a line automatically:
@@ -475,7 +480,6 @@ b_speciesGentoo)
475480
head()
476481
```
477482

478-
479483
## Posterior draws rainclouds
480484

481485
```{r, echo = T}
@@ -606,14 +610,9 @@ geom_edge_link()
606610

607611
## Takeaways
608612

609-
- `ggraph` can plot many different types of network objects.
610-
- Use `as_tbl_graph` to convert graphs to `ggraph`-compatible objects.
611-
- Layouts strongly determine the appearance and interpretability of a graph.
612-
613-
614-
615-
616-
613+
- `ggraph` can plot many different types of network objects.
614+
- Use `as_tbl_graph` to convert graphs to `ggraph`-compatible objects.
615+
- Layouts strongly determine the appearance and interpretability of a graph.
617616

618617
## Extensions Resources
619618

@@ -626,19 +625,19 @@ geom_edge_link()
626625
- [Cheat sheet](https://rstudio.github.io/cheatsheets/gganimate.pdf)
627626
- [Website](https://gganimate.com)
628627

629-
`ggdist`
628+
## Extensions Resources
630629

631-
- [Documentation](https://mjskay.github.io/ggdist/index.html)
632-
- More about [tidybayes](http://mjskay.github.io/tidybayes/)
630+
`ggdist`
633631

634-
## Extensions Resources
632+
- [Documentation](https://mjskay.github.io/ggdist/index.html)
633+
- More about [tidybayes](http://mjskay.github.io/tidybayes/)
635634

636635
`ggraph`
637636

638-
- [`ggraph` documentation](https://ggraph.data-imaginist.com/index.html)
639-
- [`tidygraph` documentation](https://tidygraph.data-imaginist.com/)
640-
- [`igraph` R package documentation](https://r.igraph.org/)
641-
- [`rotl` documentation](https://cran.r-project.org/web/packages/rotl/rotl.pdf)
637+
- [`ggraph` documentation](https://ggraph.data-imaginist.com/index.html)
638+
- [`tidygraph` documentation](https://tidygraph.data-imaginist.com/)
639+
- [`igraph` R package documentation](https://r.igraph.org/)
640+
- [`rotl` documentation](https://cran.r-project.org/web/packages/rotl/rotl.pdf)
642641

643642
## Getting Help
644643

0 commit comments

Comments
 (0)