Update app.R
Browse files
app.R
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
options(error = NULL)
|
2 |
library(shiny)
|
3 |
library(shinydashboard)
|
@@ -9,9 +11,9 @@ library(rnaturalearthdata)
|
|
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,7 +207,8 @@ 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 = "Courier New") +
|
|
|
209 |
labs(
|
210 |
fill = paste(index_col, "Index"),
|
211 |
title = "Country Representation Rankings",
|
|
|
1 |
+
setwd("~/Downloads")
|
2 |
+
|
3 |
options(error = NULL)
|
4 |
library(shiny)
|
5 |
library(shinydashboard)
|
|
|
11 |
library(countrycode)
|
12 |
library(ggplot2)
|
13 |
library(ggiraph) # For interactive hover tooltips
|
14 |
+
#library(extrafont)
|
15 |
+
#font_import() # run
|
16 |
+
#loadfonts() # load the fonts into R session
|
17 |
|
18 |
# =============================
|
19 |
# UI
|
|
|
207 |
scale_fill_viridis_c(option = "D", na.value = "white") +
|
208 |
coord_sf(expand = FALSE) +
|
209 |
# Use a generic base_family to avoid font errors
|
210 |
+
#theme_void(base_size = 14, base_family = "Courier New") +
|
211 |
+
theme_void(base_size = 14, base_family = "sans") +
|
212 |
labs(
|
213 |
fill = paste(index_col, "Index"),
|
214 |
title = "Country Representation Rankings",
|