Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 1 | --- |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 2 | title: "IDS theme for revealjs" |
| 3 | subtitle: "a demo" |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 4 | author: Marc Kupietz |
| 5 | institute: "IDS Mannheim" |
Marc Kupietz | 2c09462 | 2023-10-08 14:19:47 +0200 | [diff] [blame] | 6 | date: "Mannheim, 2023-10-08" |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 7 | output: |
| 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 Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 19 | slideNumber: true |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 20 | chalkboard: |
| 21 | theme: chalkboard |
| 22 | toggleNotesButton: true |
| 23 | menu: |
| 24 | numbers: true |
Marc Kupietz | 3b21719 | 2023-10-08 20:56:36 +0200 | [diff] [blame^] | 25 | lang: en |
| 26 | bibliography: references.bib |
| 27 | csl: "https://raw.githubusercontent.com/ICLC-10/Zotero/master/styles/ICLC-10.csl" |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 28 | --- |
| 29 | |
| 30 | ```{r setup, include=FALSE} |
Marc Kupietz | 3b21719 | 2023-10-08 20:56:36 +0200 | [diff] [blame^] | 31 | knitr::opts_chunk$set(echo = FALSE, message = FALSE, warning = FALSE) |
Marc Kupietz | 2c09462 | 2023-10-08 14:19:47 +0200 | [diff] [blame] | 32 | library(idsThemeR) |
| 33 | library(highcharter) |
| 34 | library(tidyverse) |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 35 | ``` |
| 36 | |
| 37 | ## R Markdown |
| 38 | |
Marc Kupietz | 3b21719 | 2023-10-08 20:56:36 +0200 | [diff] [blame^] | 39 | This 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 [@R-rmarkdown] see <http://rmarkdown.rstudio.com>. |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 40 | |
| 41 | When 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. |
| 42 | |
| 43 | ## Slide with Bullets |
| 44 | ### Subheading |
| 45 | |
| 46 | - Bullet 1 |
| 47 | - Bullet 2 |
| 48 | - Bullet 3 |
| 49 | |
| 50 | <aside class="notes"> |
| 51 | Here are some notes. |
| 52 | </aside> |
| 53 | |
| 54 | ::: footer |
| 55 | Custom footer text |
| 56 | ::: |
| 57 | |
| 58 | ## Slide with R Output |
| 59 | |
| 60 | ```{r cars, echo = TRUE} |
| 61 | summary(cars) |
| 62 | ``` |
| 63 | |
| 64 | ## Slide with Plot |
| 65 | |
| 66 | ```{r pressure} |
| 67 | plot(pressure) |
| 68 | ``` |
| 69 | |
Marc Kupietz | 2c09462 | 2023-10-08 14:19:47 +0200 | [diff] [blame] | 70 | ## Registered Users |
| 71 | ### (for COSMAS II and KorAP) |
| 72 | |
| 73 | ```{r registrations, message=F, warning=F} |
| 74 | registrierungen <- |
| 75 | read_tsv("http://www.ids-mannheim.de/cosmas2/projekt/intstats/registrierungen.csv") %>% |
| 76 | add_column(group = "registered users") |
| 77 | |
| 78 | hc <- registrierungen %>% |
| 79 | hchart("line", hcaes(x=date, y=registered, group=group)) %>% |
| 80 | hc_add_theme(hc_theme_ids_light()) %>% |
| 81 | hc_yAxis(title=list(text="")) %>% |
| 82 | hc_xAxis(title=list(text="")) %>% |
| 83 | hc_legend(element_blank()) %>% |
| 84 | hc_size(height=500, width=900) |
| 85 | hc |
| 86 | |
| 87 | ``` |
Marc Kupietz | 3b21719 | 2023-10-08 20:56:36 +0200 | [diff] [blame^] | 88 | # References |
| 89 | |