Skip to content

Commit

Permalink
Update branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 11, 2022
1 parent 246182e commit 4ab1b60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bookdown::gitbook:
collapse: section
before: |
<li><a href="./">Mastering Shiny</a></li>
edit: https://github.com/hadley/mastering-shiny/edit/master/%s
edit: https://github.com/hadley/mastering-shiny/edit/main/%s
download: []
sharing:
facebook: no
Expand Down
10 changes: 5 additions & 5 deletions basic-case-study.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ If you want to get the data on to your own computer, run this code:
```{r, eval = "FALSE"}
dir.create("neiss")
download <- function(name) {
url <- "https://github.com/hadley/mastering-shiny/raw/master/neiss/"
url <- "https://github.com/hadley/mastering-shiny/raw/main/neiss/"
download.file(paste0(url, name), paste0("neiss/", name), quiet = TRUE)
}
download("injuries.tsv.gz")
Expand Down Expand Up @@ -236,7 +236,7 @@ Note that creating the `summary` reactive isn't strictly necessary here, as it's
But it's good practice to keep computing and plotting separate as it makes the flow of the app easier to understand, and will make it easier to generalise in the future.

A screenshot of the resulting app is shown in Figure \@ref(fig:prototype).
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/prototype.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-prototype/>.
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/prototype.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-prototype/>.

```{r prototype, echo = FALSE, out.width = "100%", fig.cap="First prototype of NEISS exploration app"}
case_study_screenshot("prototype")
Expand Down Expand Up @@ -272,7 +272,7 @@ I made one other change to improve the aesthetics of the app: I forced all table
This makes the output more aesthetically pleasing because it reduces the amount of incidental variation.

A screenshot of the resulting app is shown in Figure \@ref(fig:polish-tables).
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/polish-tables.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-polish-tables>.
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/polish-tables.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-polish-tables>.

```{r polish-tables, echo = FALSE, out.width = "100%", fig.cap="The second iteration of the app improves the display by only showing the most frequent rows in the summary tables"}
case_study_screenshot("polish-tables")
Expand All @@ -295,7 +295,7 @@ Then I condition on that input when generating the plot:
```

A screenshot of the resulting app is shown in Figure \@ref(fig:rate-vs-count).
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/rate-vs-count.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-rate-vs-count>.
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/rate-vs-count.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-rate-vs-count>.

```{r rate-vs-count, echo = FALSE, out.width = "100%", fig.cap = "In this iteration, we give the user the ability to switch between displaying the count or the population standardised rate on the y-axis."}
case_study_screenshot("rate-vs-count")
Expand All @@ -319,7 +319,7 @@ I then use `eventReactive()` to create a reactive that only updates when the but
```

A screenshot of the resulting app is shown in Figure \@ref(fig:narrative).
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/master/neiss/narrative.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-narrative>.
You can find the source code at <https://github.com/hadley/mastering-shiny/tree/main/neiss/narrative.R> and try out a live version of the app at <https://hadley.shinyapps.io/ms-narrative>.

```{r narrative, echo = FALSE, out.width = "100%", fig.cap = "The final iteration adds the ability to pull out a random narrative from the selected rows"}
case_study_screenshot("narrative")
Expand Down

0 comments on commit 4ab1b60

Please sign in to comment.