-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.R
57 lines (41 loc) · 1.09 KB
/
global.R
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
library(shiny)
library(shinydashboard)
library(DT)
library(tidyverse)
library(plotly)
data <- as.data.frame(readRDS("shiny_data.RDS"), stringsAsFactors = FALSE)
f_means <- readRDS("f_means.RDS")
metrics <- sort(c("times_cited", "wos", "recent_citations", "relative_citation_ratio", "field_citation_ratio",
"oa", "fieldcount", "authors", "mendeley", "tweets", "altm_score"))
scales <- c("linear", "log")
schools <- c("Aalto University", sort(unique(data$parent)))
uniquedois <- data[!duplicated(data[,1]), ]
nrow_uniquedois <- nrow(uniquedois)
with_oa_uniquedois <- paste0(nrow(uniquedois[!is.na(uniquedois$urls),]),
" (",
floor(nrow(uniquedois[!is.na(uniquedois$urls),]) / nrow_uniquedois * 100),
"%)")
#----------------------
# Plotly heatmap conf
#----------------------
f2 <- list(
size = 10
)
ax <- list(
title = "",
tickangle = 45,
tickfont = f2
)
ay <- list(
title = "",
tickfont = f2
)
m <- list(
l = 300,
r = 10,
b = 150,
t = 50,
pad = 6
)
w <- 700
h <- 600