-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Rhistory
209 lines (209 loc) · 4.42 KB
/
.Rhistory
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
library(shiny)
runApp()
runApp()
library(shiny)
runExample("06_tabsets")
shiny::runApp()
runApp()
library(tidyverse)
runApp()
shiny::runApp()
install.packages("fansi")
shiny::runApp()
install.packages("fansi")
runApp()
runApp()
shiny::runApp()
runApp()
library(wordcloud)
wordcloud(
"Many years ago the great British explorer George Mallory, who
was to die on Mount Everest, was asked why did he want to climb
it. He said, \"Because it is there.\"
Well, space is there, and we're going to climb it, and the
moon and the planets are there, and new hopes for knowledge
and peace are there. And, therefore, as we set sail we ask
God's blessing on the most hazardous and dangerous and greatest
adventure on which man has ever embarked.",
,random.order=FALSE)
install.packages("tm")
shiny::runApp()
words <- "United States law enforcement officers have been out in force at state capitols across the country and in Washington, DC, in response to planned protests in support of President Donald Trump that on Sunday had drawn only a small number people.
More than a dozen states have activated National Guard troops to help secure their capitol buildings following an FBI warning of armed demonstrations in advance of President-elect Joe Biden’s inauguration on January 20."
wordcloud(words, random.order = FALSE)
runApp()
shiny::runApp()
runApp()
runApp()
shiny::runApp()
library(quanteda.textstats)
library(quanteda.textstats)
install.packages("quanteda.textstats")
runApp()
shiny::runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
install.packages('rsconnect')
library(rsconnect)
rsconnect::setAccountInfo(name='monyake', token='3B4856EFD537183098841A29A850819F', secret='JA8eP2YPQhPBAaabocMxf3C5IoJtKpWJG8q1xgYC')
deployApp()
runApp()
length("â")
length("âljhkjgiy")
str_length("â")
str_length("âljhkjgiy")
runApp()
runApp()
deployApp()
runApp()
runApp()
shiny::runApp()
runApp()
runApp()
runApp()
library(rsconnect)
deployApp()
shiny::runApp()
runApp()
runApp()
library(rsconnect)
deployApp()
shiny::runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
library(shinydashboard)
shiny::runApp()
library(shiny)
library(dplyr)
# min rep example of wordcloud
words<-c("one", "two", "three", "four")
count<-c(1,2,3,4)
wordlist<-data_frame(words, count)
ui<-fluidPage(
sidebarLayout(
sidebarPanel = sidebarPanel(
checkboxInput("checkbox", "Plot wordcloud!")
),
mainPanel = mainPanel(
wordcloud2Output('wordcloud', width = "auto") # I have also tried: width = "100%"
),
position = c("left", "right"),
fluid = TRUE
)
)
server<-function(input, output, session){
output$wordcloud<-renderWordcloud2({
set.seed(1234)
colorpalette<-c("darkviolet", "cyan", "violet","gold", "mediumspringgreen") # , darkturquoise", "aquamarine" turquoise
colorVec<-rep(colorpalette, length.out=nrow(wordlist))
if (input$checkbox ==TRUE){
wordcloud2(wordlist,rotateRatio = 0.3, color = colorVec, backgroundColor = "black", size = 0.4, widgetsize =c("1000","1000")) #, widgetsize = "200%"
}
})
}
# Create Shiny app ----
shinyApp(ui, server, options = list(height = 1000))
runApp()
if (interactive()) {
ui <- fluidPage(
numericInput("obs", "Observations:", 10, min = 1, max = 100),
verbatimTextOutput("value")
)
server <- function(input, output) {
output$value <- renderText({ input$obs })
}
shinyApp(ui, server)
}
runApp()
runApp()
runApp()
runApp()
install.packages('rsconnect')
install.packages('rsconnect')
library(rsconnect)
rsconnect::setAccountInfo(name='monyake', token='3B4856EFD537183098841A29A850819F', secret='JA8eP2YPQhPBAaabocMxf3C5IoJtKpWJG8q1xgYC')
deployApp()
shiny::runApp()
runApp(list(
ui = navbarPage(
"Title",
tags$head(tags$style(HTML("body{ background: red; }"))),
tabPanel(title = "First"),
tabPanel(title = "Second")
),
server = function(input, output, session) {}
))
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
shiny::runApp()
runApp()
runApp()
df <- head(mtcars)
df <- tail(mtcars)
df_2 <- tail(mtcars)
df_list <- list(df, df_2)
df_list
df_list[[1]]
df <- head(mtcars)
df_list
df <- head(mtcars)
df_2 <- tail(mtcars)
df_list
mtcars
tibble::tibble(mtcars)
mtcars
df <- head(mtacrs)
df <- head(mtcars)
df
df_2 <- tail(mtcars)
df_2
df_list <- list(df, df_2)
df_list
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
runApp()
shiny::runApp()