-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensions.qmd
89 lines (85 loc) · 9.78 KB
/
extensions.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Extensions {#sec-extensions}
```{r}
#| label: setup
#| message: false
#| warning: false
#| include: false
library(tidyverse)
library(lubridate)
library(scales)
library(knitr)
library(kableExtra)
library(colorblindr)
library(downlit)
# _common.R ----
source("_common.R")
# use font
showtext::showtext_auto()
# set theme
ggplot2::theme_set(theme_ggp2g(
base_size = 15))
```
```{r}
#| label: co_box_dev
#| echo: false
#| results: asis
#| eval: true
co_box(
color = "o", look = "minimal",
header = "Caution",
contents = "This section is still being developed. The contents are subject to change.",
fold = FALSE
)
library(dplyr)
```
Below are the graphs requiring additional packages/extensions:
::: {style="font-size: 0.95rem;"}
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Graph | Package | Code |
+=================+========================================================================================================================+===================================================+
| Waffle charts | [`ggwaffle`](https://liamgilbey.github.io/ggwaffle/) | ``` |
| | | remotes::install_github("liamgilbey/ggwaffle") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Pie charts | [`ggpubr`](https://rpkgs.datanovia.com/ggpubr/) | ``` |
| | | remotes::install_github("kassambara/ggpubr") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Mosaic Plots | [`ggmosaic`](https://haleyjeppson.github.io/ggmosaic/) | ``` |
| | | remotes::install_github("haleyjeppson/ggmosaic") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Treemaps | [`treemapify`](https://wilkox.org/treemapify/) | ``` |
| | | remotes::install_github("wilkox/treemapify") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Beeswarm Plots | [`ggbeeswarm`](https://github.com/eclarke/ggbeeswarm) | ``` |
| | | remotes::install_github("eclarke/ggbeeswarm") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Ridgeline Plots | [`ggridges`](https://wilkelab.org/ggridges/) | ``` |
| | | remotes::install_github("wilkelab/ggridges") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Raincloud plots | [`raincloudplots`](https://github.com/jorvlan/raincloudplots) & [`ggdist`](https://mjskay.github.io/ggdist/reference/) | ``` |
| | | remotes::install_github('jorvlan/raincloudplots') |
| | | remotes::install_github('mjskay/ggdist') |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Alluvial charts | [`ggalluvial`](https://corybrunson.github.io/ggalluvial/) | ``` |
| | | remotes::install_github("corybrunson/ggalluvial") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Parallel Sets | [`ggforce`](https://ggforce.data-imaginist.com/) | ``` |
| | | remotes::install_github("thomasp85/ggforce") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Bump charts | [`ggbump`](https://github.com/davidsjoberg/ggbump) | ``` |
| | | remotes::install_github("davidsjoberg/ggbump") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
| Stream Plots | [`ggstream`](https://github.com/davidsjoberg/ggstream) | ``` |
| | | remotes::install_github("davidsjoberg/ggstream") |
| | | ``` |
+-----------------+------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+
:::