-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path120-shiny.Rmd
43 lines (27 loc) · 1.96 KB
/
120-shiny.Rmd
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
# - Interactive graphs with Shiny {-}
## Before class
Please install shiny
```{r eval=FALSE}
install.packages("shiny")
install.packages("shinyjs")
install.packages("shinydashboard")
```
Please visit [shinyapps.io](https://www.shinyapps.io/) and make an account (you may be able to activate an account associated with your TUoS account by clicking 'sign in with Google')
## Exercises
We are going to follow [Lisa DeBruine](https://debruine.github.io/)'s tutorial - [First Shiny App](https://psyteachr.github.io/shiny-tutorials/01-first-app.html).
Additional challenges / exercises
* Make scatterplot rather than histogram
* Make the app load data which you save in the project directory
* Deploy to the web with [shinyapps.io](https://www.shinyapps.io/)
* This page may be helpful when combining exercises 2 and 3: [Why does my app work locally, but not on shinyapps.io](https://support.rstudio.com/hc/en-us/articles/229848967-Why-does-my-app-work-locally-but-not-on-shinyapps-io-)
* Look for and share additional resources on shiny apps
## Resources
* This is part of a set of [Shiny Tutorials](https://psyteachr.github.io/shiny-tutorials/index.html)
* RStudio: [Shiny User Showcase](https://shiny.rstudio.com/gallery/)
* Example: [Movie-explorer](https://shiny.rstudio.com/gallery/movie-explorer.html)
* Example: [Enhanced sensitivity to group differences with decision modelling](https://sheffield-university.shinyapps.io/decision_power/)
* [The Anatomy of a Shiny Application](https://www.r-bloggers.com/2021/04/the-anatomy-of-a-shiny-application/)
* [Shiny widgets](https://shiny.rstudio.com/tutorial/written-tutorial/lesson3/) - useful to get an idea of what you can do
## Examples of interactive graphs which use different tech (Javascript!)
* [Interpreting Cohen's d Effect Size](https://rpsychologist.com/d3/cohend/) by Kristoffer Magnusson
* Example: Grid histograms of [Constituencies by median age in 2017](https://olihawkins.com/visualisation/14) from Oli Hawkins