pdf(file = "abc1.pdf",
width = 20,height = 20)
dat01 %>%
arrange(desc(sp_pop_totl)) %>%
ggplot(aes(x = it_mlt_main_p2,
y = it_cel_sets_p2,
label = country)) +
geom_point(
aes(size = sp_pop_totl, fill = continent),
pch = 21, color = "white", alpha = .9
)+
scale_fill_manual(values = cols) +
scale_size_area(max_size = 80) +
coord_cartesian(xlim = c(0, 75), ylim = c(0, 200), clip = "off") +
guides(size = "none") +
theme_minimal(base_family = "serif", base_size = 35) +
theme(
text = element_text(color = "#3a3e4c"),
plot.background = element_rect(fill = "#f2ebe7", color = NA),
panel.grid = element_line(linetype = 3, color = "#c9c8c4"),
plot.title.position = "plot",
plot.title = element_text(size = 100),
plot.subtitle = element_text(family = "serif"),
legend.position = "bottom", plot.margin = margin(20,20,20,20)
) +
guides(size = "none", fill = guide_legend(title = NULL, override.aes = list(size = 5))) +
labs(title = "Rise of Cell Phones",
subtitle = "Cell phones are not only more convenient for the end user. They are also much easier to implement in\nregions with poor infrastructure. Countries with low income never saw the rise of landline phones, but\nachieved widespread use of cell phones within two decades",
x = "\nLandline Subscriptions pr. 100 people",
y = "Cell Phone Subscriptions pr. 100 people\n",
caption = "Data Source: World Bank | #30daychartchallenge\n@emilmalta"
)
dev.off()