cjerzak commited on
Commit
8a3f367
·
verified ·
1 Parent(s): 4fa92b9

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -1
app.R CHANGED
@@ -9,6 +9,9 @@ library(rnaturalearthdata)
9
  library(countrycode)
10
  library(ggplot2)
11
  library(ggiraph) # For interactive hover tooltips
 
 
 
12
 
13
  # =============================
14
  # UI
@@ -202,7 +205,7 @@ server <- function(input, output, session) {
202
  scale_fill_viridis_c(option = "D", na.value = "white") +
203
  coord_sf(expand = FALSE) +
204
  # Use a generic base_family to avoid font errors
205
- theme_void(base_size = 14, base_family = "sans") +
206
  labs(
207
  fill = paste(index_col, "Index"),
208
  title = "Country Representation Rankings",
 
9
  library(countrycode)
10
  library(ggplot2)
11
  library(ggiraph) # For interactive hover tooltips
12
+ #library(extrafont)
13
+ #font_import() # run
14
+ #loadfonts() # load the fonts into R session
15
 
16
  # =============================
17
  # UI
 
205
  scale_fill_viridis_c(option = "D", na.value = "white") +
206
  coord_sf(expand = FALSE) +
207
  # Use a generic base_family to avoid font errors
208
+ theme_void(base_size = 14, base_family = "Times New Roman") +
209
  labs(
210
  fill = paste(index_col, "Index"),
211
  title = "Country Representation Rankings",