This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .......................................................... | |
| # 2025-10-09 -- box | |
| # ihme citations skew ----------- | |
| # Ilya Kashnitsky, ilya.kashnitsky@gmail.com | |
| # .......................................................... | |
| library(tidyverse) | |
| library(janitor) | |
| library(magrittr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "workbench.colorTheme": "Bearded Theme Oceanic Reversed", | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontLigatures": true, | |
| "editor.fontWeight": "500", // Medium | |
| "editor.wordWrap": "on", | |
| "editor.defaultFoldingRangeProvider": "positron.positron-r", | |
| "positron.r.defaultRepositories": "rstudio", | |
| "positron.r.customRootFolders": [ | |
| "C:\\Users\\DstMove\\scoop\\apps\\r\\current\\bin\\R.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #=============================================================================== | |
| # 2022-12-25 -- ik-q | |
| # World cups -- was Qatar that exceptional? | |
| # Ilya Kashnitsky, ilya.kashnitsky@gmail.com, @ikashnitsky | |
| #=============================================================================== | |
| library(tidyverse) | |
| library(magrittr) | |
| library(wdman) | |
| library(RSelenium) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #=============================================================================== | |
| # 2021-02-23 -- local hmd UPD 2025-04-11 | |
| # Function to read in a whole local HMD folder | |
| # Ilya Kashnitsky, ilya.kashnitsky@gmail.com | |
| #=============================================================================== | |
| # a function to read ONE file | |
| fread_hmd <- function(x) x %>% | |
| data.table::fread(skip = 2, na.strings = ".") %>% | |
| mutate(Age = Age %>% str_remove("\\+") %>% as.integer()) %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################################ | |
| # | |
| # bibliometrics 2018-09-22 | |
| # SJR data -- load and combine all files -- GIST | |
| # Ilya Kashnitsky, ilya.kashnitsky@gmail.com | |
| # | |
| ################################################################################ | |
| library(tidyverse) | |
| library(janitor) |
Ilya Kashnitsky, ilya.kashnitsky@gmail.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #=============================================================================== | |
| # 2019-07-19-- ikashnitsky.github.io | |
| # Reproduce Figure 2 from http://doi.org/10.1007/s10708-018-9953-5 | |
| # Ilya Kashnitsky, ilya.kashnitsky@gmail.com | |
| #=============================================================================== | |
| library(tidyverse) | |
| library(hrbrthemes); import_roboto_condensed() | |
| # the data as tribble |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0.9505599562960936 | 7.373295920141045 | |
|---|---|---|
| 1.0986069379950836 | 7.328921556455017 | |
| 1.2791586998087952 | 7.3965756996349725 | |
| 1.4164162797049977 | 7.896948176106876 | |
| 1.5681507784758253 | 7.501837550594721 | |
| 1.992078667030866 | 7.42089841325023 | |
| 2.1416279704998624 | 7.585483350301706 | |
| 2.2817536192297174 | 7.757505400908842 | |
| 2.4356733133023756 | 7.802699212833056 | |
| 2.624146408085222 | 7.653956941719848 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auth_50 %>% | |
| ggplot(aes(avg_cit, n_papers, color = avg_age_of_papers))+ | |
| geom_vline(xintercept = 0, size = 2, color = "#04444499")+ | |
| geom_point(size = 2)+ | |
| geom_text( | |
| aes(label = author_abbr, size = n_papers), | |
| hjust = c(-.1, 1.1) %>% rep(25), | |
| vjust = c(-.05, 1.05) %>% rep(25), | |
| fontface = 2, | |
| alpha = .75 |
NewerOlder