blob: 75f7ae002be571d6fe7cda9526ddfd26e1a95065 [file] [log] [blame]
Marc Kupietza737b1b2023-10-07 09:32:20 +02001---
Marc Kupietzdf0eda92023-10-07 20:50:00 +02002title: "IDS theme for revealjs"
3subtitle: "a demo"
Marc Kupietza737b1b2023-10-07 09:32:20 +02004author: Marc Kupietz
5institute: "IDS Mannheim"
Marc Kupietz2c094622023-10-08 14:19:47 +02006date: "Mannheim, 2023-10-08"
Marc Kupietza737b1b2023-10-07 09:32:20 +02007output:
8 revealjs::revealjs_presentation:
9 theme: ids
10 highlight: pygments
11 self_contained: false
12 reveal_plugins:
13 - search
14 - zoom
15 - notes
16 - chalkboard
17 - menu
18 reveal_options:
Marc Kupietz7c8f7de2023-10-07 11:42:29 +020019 slideNumber: true
Marc Kupietza737b1b2023-10-07 09:32:20 +020020 chalkboard:
21 theme: chalkboard
22 toggleNotesButton: true
23 menu:
24 numbers: true
25---
26
27```{r setup, include=FALSE}
28knitr::opts_chunk$set(echo = FALSE)
Marc Kupietz2c094622023-10-08 14:19:47 +020029library(idsThemeR)
30library(highcharter)
31library(tidyverse)
Marc Kupietza737b1b2023-10-07 09:32:20 +020032```
33
34## R Markdown
35
36This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
37
38When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
39
40## Slide with Bullets
41### Subheading
42
43- Bullet 1
44- Bullet 2
45- Bullet 3
46
47<aside class="notes">
48Here are some notes.
49</aside>
50
51::: footer
52Custom footer text
53:::
54
55## Slide with R Output
56
57```{r cars, echo = TRUE}
58summary(cars)
59```
60
61## Slide with Plot
62
63```{r pressure}
64plot(pressure)
65```
66
Marc Kupietz2c094622023-10-08 14:19:47 +020067## Registered Users
68### (for COSMAS II and KorAP)
69
70```{r registrations, message=F, warning=F}
71registrierungen <-
72 read_tsv("http://www.ids-mannheim.de/cosmas2/projekt/intstats/registrierungen.csv") %>%
73 add_column(group = "registered users")
74
75 hc <- registrierungen %>%
76 hchart("line", hcaes(x=date, y=registered, group=group)) %>%
77 hc_add_theme(hc_theme_ids_light()) %>%
78 hc_yAxis(title=list(text="")) %>%
79 hc_xAxis(title=list(text="")) %>%
80 hc_legend(element_blank()) %>%
81 hc_size(height=500, width=900)
82 hc
83
84```