-
Notifications
You must be signed in to change notification settings - Fork 2
/
interactive.Rmd
37 lines (23 loc) · 1.21 KB
/
interactive.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
---
title: "<b>Interactive Ideological Analysis</b>"
output:
html_document:
theme: cosmo
---
<br>
###*Instructions for Our [Shiny App](https://jtbeyond.shinyapps.io/hw10/)*
For this tab, we further develop the last two graphs in the "Ideological Analysis" tab and make them interactive and include them in a Shiny App. Use the long slide bar right under the graph to select time period for visualization. Go to "Index plot options" to select ideology subcategories to display. In addition, we provide a function to create topic models. Feel free to select numbers of topics in topic models and top terms to be shown in "Topic model options." Notice that it would take some time to generate results when lots of topics are chosen, since the system needs time to translate Chinese terms in our dataset into English. Finally, feel free to download data with information regarding your selected time period in "Data Download."
<br>
<br>
```{r setup, include = FALSE}
library(tidyverse)
library(feather)
library(tidytext)
library(topicmodels)
library(DT)
library(shiny)
library(shinyjs)
```
```{r, echo = FALSE, message = FALSE, warning = FALSE}
knitr::include_app("https://jtbeyond.shinyapps.io/hw10/", height = 1200)
```