Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
publisher sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
njahn82 committed Jan 7, 2020
1 parent d48acec commit d0a3855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dashboard.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ library(echarts4r)
# access to data
hybrid_df <- readr::read_csv("data/hybrid_publications.csv") %>%
mutate(license = fct_infreq(license)) %>%
mutate(publisher = fct_infreq(publisher)) %>%
mutate(year = factor(issued, levels = c("2013", "2014", "2015","2016", "2017", "2018", "2019"))) %>%
mutate(hybrid_type = ifelse(hybrid_type == "SCOAP", "SCOAP<sup>3</sup>", hybrid_type)) %>%
mutate(hybrid_type = factor(hybrid_type, levels = c("Open APC (TA)", "Open APC (Hybrid)", "SCOAP<sup>3</sup>"))) %>%
Expand All @@ -46,7 +47,7 @@ Inputs {.sidebar}
```{r}
# from https://stackoverflow.com/questions/42148177/how-can-i-build-multiple-inputs-into-my-shiny-app-with-both-updating-and-multipl
selectizeInput("publisherinput", "Publisher", c("All", unique(hybrid_df$publisher)), selected =
selectizeInput("publisherinput", "Publisher", c("All", levels(hybrid_df$publisher)), selected =
"All")
selectizeInput("journalinput", "Journal", c("All", unique(hybrid_df$journal_title)), selected =
"All", options = list(maxOptions = 5000))
Expand Down

0 comments on commit d0a3855

Please sign in to comment.