if (grepl("linux", version$os)) {
font_family <- "IPAPGothic"
} else {
font_family <- "IPAexGothic"
}
Japan
tabularmap(jpn77,
fill = region_kanji,
label = prefecture_kanji,
family = font_family) +
theme_tabularmap(base_family = font_family) +
scale_fill_jpregion(lang = "jp") +
guides(fill = guide_legend(title = "8地方区分",
nrow = 1,
title.position = "top",title.hjust = 0.5)) +
theme(legend.title = element_text(size = 12),
legend.text = element_text(size = 10),
legend.position = "bottom")
Global (ISO 3166 code)