Update app.R
Browse files
app.R
CHANGED
|
@@ -9,9 +9,9 @@ library(rnaturalearthdata)
|
|
| 9 |
library(countrycode)
|
| 10 |
library(ggplot2)
|
| 11 |
library(ggiraph) # For interactive hover tooltips
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
# =============================
|
| 17 |
# UI
|
|
@@ -205,7 +205,7 @@ server <- function(input, output, session) {
|
|
| 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 = "
|
| 209 |
labs(
|
| 210 |
fill = paste(index_col, "Index"),
|
| 211 |
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 = "sans") +
|
| 209 |
labs(
|
| 210 |
fill = paste(index_col, "Index"),
|
| 211 |
title = "Country Representation Rankings",
|