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 |
| 25 | --- |
| 26 | |
| 27 | ```{r setup, include=FALSE} |
| 28 | knitr::opts_chunk$set(echo = FALSE) |
Marc Kupietz | 2c09462 | 2023-10-08 14:19:47 +0200 | [diff] [blame] | 29 | library(idsThemeR) |
| 30 | library(highcharter) |
| 31 | library(tidyverse) |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 32 | ``` |
| 33 | |
| 34 | ## R Markdown |
| 35 | |
| 36 | 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 see <http://rmarkdown.rstudio.com>. |
| 37 | |
| 38 | 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. |
| 39 | |
| 40 | ## Slide with Bullets |
| 41 | ### Subheading |
| 42 | |
| 43 | - Bullet 1 |
| 44 | - Bullet 2 |
| 45 | - Bullet 3 |
| 46 | |
| 47 | <aside class="notes"> |
| 48 | Here are some notes. |
| 49 | </aside> |
| 50 | |
| 51 | ::: footer |
| 52 | Custom footer text |
| 53 | ::: |
| 54 | |
| 55 | ## Slide with R Output |
| 56 | |
| 57 | ```{r cars, echo = TRUE} |
| 58 | summary(cars) |
| 59 | ``` |
| 60 | |
| 61 | ## Slide with Plot |
| 62 | |
| 63 | ```{r pressure} |
| 64 | plot(pressure) |
| 65 | ``` |
| 66 | |
Marc Kupietz | 2c09462 | 2023-10-08 14:19:47 +0200 | [diff] [blame] | 67 | ## Registered Users |
| 68 | ### (for COSMAS II and KorAP) |
| 69 | |
| 70 | ```{r registrations, message=F, warning=F} |
| 71 | registrierungen <- |
| 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 | ``` |