-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.R
42 lines (22 loc) · 765 Bytes
/
main.R
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
library(shiny)
runApp('S:/Data Science Think Tank/Twitter_visual',host="0.0.0.0",port=5050)
#install.packages('rsconnect')
library(rsconnect)
library(RcppArmadillo)
rsconnect::setAccountInfo(name='zihaozhangap', token='CCC977CDDB18ED55C68DBA2E664C2F6E', secret='/PqGH9VGjl0pqvOh6uOIHmQl3JB+lzGluzAv1Gez')
rsconnect::deployApp("S:/Data Science Think Tank/Twitter_visual")
library(d3heatmap)
library(shiny)
ui <- fluidPage(
d3heatmapOutput("heatmap"),
wordcloud2Output("cloudmap")
)
server <- function(input, output, session) {
output$cloudmap <- renderWordcloud2({
wordcloud2(data = d)
})
output$heatmap <- renderD3heatmap({
d3heatmap::d3heatmap(heatmapdata, dendrogram = "none",color = "Blues")
})
}
shinyApp(ui, server)