Skip to content

Commit d973833

Browse files
authored
Add files via upload
1 parent 923d649 commit d973833

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

EDA1.Rmd

+4-5
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ After completing the notebook, you should know how to carry out the following ta
4242

4343
- Taking advantage of shiny functionality for more advanced interactions with the data
4444

45-
-
46-
```{r}
47-
setwd("~/Downloads/lab_tutorials/Exploratory_Data_Analysis1")
48-
```
45+
4946

5047
#### R Packages used
5148

@@ -254,7 +251,7 @@ server <- function(input, output, session) {
254251
output$brush <- renderPrint({
255252
# d is event data, gained from selecting points on the plot
256253
d <- event_data("plotly_selected")
257-
m <- nyc_data
254+
m <- nyc.data
258255
#this loop gives us a data frame with the nonselected observations
259256
for(x in d$key){
260257
m <- m %>% filter(subborough != x)
@@ -280,6 +277,7 @@ server <- function(input, output, session) {
280277
The third part of the app is the `shinyApp` command. This launches the app. If everything is inorder with the server and ui portions of the code the app should work.
281278
```{r}
282279
shinyApp(ui, server)
280+
283281
```
284282

285283

@@ -308,5 +306,6 @@ shinyApp(ui, server)
308306

309307

310308

309+
311310

312311

0 commit comments

Comments
 (0)