Geodata
2024-03-31
1 / 1
Data Visualization
Plot multiple countries on the world map
Yang Liu
/
2023-05-29
This post will show it’s quite easy to download and plot the administrative areas of multiple countries on the world map. I will also showcase a bug that puzzled me for a long time and I recently figured out: strange connecting lines among countries! […] (You may download the world map from Github) suppressPackageStartupMessages({ library("data.table") library("ggplot2")…
Data Visualization
US and China Admin1 COVID19 mortality and incidence rate
Yang Liu
/
2020-06-14
Similar to the last heatmap post I just revised, here I wrapped up the function and showing COVID-19 data just downloaded from JHU CSSE Github page. The function can take a given dataset and plot designated variable. Code hosted on my Github repo. […] # major function, can download from Github repo Blogdown/hugo-xmag/Code source(here::here("Code/COVID_make_map.R")) # US dt_JUH_US…
Data Visualization
ggplot US state and China province heatmap
Yang Liu
/
2020-06-12
(Updated on 2020-06-12, First posted on 2019-04-17) It sounds easy but turned out not as straight-forward as I thought. I will show: […] 50-state (including Alaska and Hawaii) United States thematic map, with map scale and with state abbreviations […] China thematic map, with map scale, with names of provinces in either English or Chinese […] The dt1 below can be used by both…