-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
332 lines (215 loc) · 10.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta name="generator" content="Hugo 0.112.5">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to my blog</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">
</head>
<body>
<nav class="header">
<div class="banner">
<a href="/">
<img src="/ocean%202.jpg" alt="Text on Image" />
</a>
</div>
<div class="head-meta">
<span>Welcome to my blog</span>
<span>2024-03-31</span>
<span>1 / 3</span>
</div>
</nav>
<div class="container">
<main class="list">
<section class="article-list">
<div class="categories">
<a href="/categories/data-visualization">Data Visualization</a>
</div>
<h1><a href="/post/2023/05/29/plot-multiple-countries-on-the-world-map/">Plot multiple countries on the world map</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2023-05-29</span>
</div>
<div class="summary">
<a href="/post/2023/05/29/plot-multiple-countries-on-the-world-map/">
<div class="thumbnail"><img src="https://liuyanguu.github.io/post/2023/05/29/plot-multiple-countries-on-the-world-map/index_files/figure-html/unnamed-chunk-1-1.png" alt="Thumbnail" /></div>
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")…
</a>
</div>
</section>
<section class="article-list">
<div class="categories">
<a href="/categories/github">Github</a>
</div>
<h1><a href="/post/2021/01/06/rmarkdown-to-github-pages/">RMarkdown to Github Pages</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2021-01-06</span>
</div>
<div class="summary">
<a href="/post/2021/01/06/rmarkdown-to-github-pages/">
<div class="thumbnail"><img src="https://user-images.githubusercontent.com/11966330/110238718-2a8d3180-7f11-11eb-9655-dd6c4a4c5a3b.JPG" alt="Thumbnail" /></div>
Example of one of my Github pages:You might have read this GitHub and RStudio tutorial by searching this topic. It is quite long and confusing as it tries to teach Git at the same time. You don’t need any of those branch operations. And the example yaml code is not indented correctly (corrected below).
Here is the short version:
[…] Make sure the yaml format is indented correct. Most…
</a>
</div>
</section>
<section class="article-list">
<div class="categories">
<a href="/categories/data-visualization">Data Visualization</a>
</div>
<h1><a href="/post/2020/06/14/us-and-china-admin1-covid19-mortality-and-incidence-rate/">US and China Admin1 COVID19 mortality and incidence rate</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2020-06-14</span>
</div>
<div class="summary">
<a href="/post/2020/06/14/us-and-china-admin1-covid19-mortality-and-incidence-rate/">
<div class="thumbnail"><img src="/post/2020-06-15-us-and-china-admin1-covid-19-mortality-and-incidence-rate_files/figure-html/unnamed-chunk-1-1.png" alt="Thumbnail" /></div>
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/Codesource(here::here("Code/COVID_make_map.R"))# USdt_JUH_US…
</a>
</div>
</section>
<section class="article-list">
<div class="categories">
<a href="/categories/data-visualization">Data Visualization</a>
</div>
<h1><a href="/post/2020/06/12/ggplot-us-state-and-china-province-heatmap/">ggplot US state and China province heatmap</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2020-06-12</span>
</div>
<div class="summary">
<a href="/post/2020/06/12/ggplot-us-state-and-china-province-heatmap/">
<div class="thumbnail"><img src="/post/2019-04-17-ggplot-heatmap-us-50-states-map-and-china-province-map_files/figure-html/unnamed-chunk-2-1.png" alt="Thumbnail" /></div>
(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…
</a>
</div>
</section>
<section class="article-list">
<div class="categories">
<a href="/categories/data-engineering">Data Engineering</a>
</div>
<h1><a href="/post/2020/01/11/working-with-3d-array-as-long-format-data-in-r/">Working with 3D array as long-format data in R</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2020-01-11</span>
</div>
<div class="summary">
<a href="/post/2020/01/11/working-with-3d-array-as-long-format-data-in-r/">
<div class="thumbnail"><img src="/post/2020-01-11-working-with-r-3d-array-as-long-format-data_files/figure-html/unnamed-chunk-10-1.png" alt="Thumbnail" /></div>
check.and.install.pkgs <- function(pkgs){new.packages <- pkgs[!pkgs %in% installed.packages()[,"Package"]]if(length(new.packages)) install.packages(new.packages, dependencies = TRUE)suppressPackageStartupMessages(invisible(lapply(pkgs, library, character.only = TRUE)))}check.and.install.pkgs(c("data.table", "reshape2", "scatterplot3d"))Happy New…
</a>
</div>
</section>
<section class="article-list">
<div class="categories">
<a href="/categories/reproducible-workflow">Reproducible Workflow</a>
</div>
<h1><a href="/post/2019/09/15/drake-powerful-tool-for-automatic-reproducible-workflow/">Drake: powerful tool for automatic reproducible workflow</a></h1>
<div class="date-author">
<span class="author">Yang Liu
</span> /
<span class="date">2019-09-15</span>
</div>
<div class="summary">
<a href="/post/2019/09/15/drake-powerful-tool-for-automatic-reproducible-workflow/">
<div class="thumbnail"><img src="/post/2019-09-15-drake-powerful-tool-for-automatic-reproducible-workflow_files/dependency%20plot.PNG" alt="Thumbnail" /></div>
drake is a powerful tool for automatic reproducible workflow. I found it a perfect match when used together with RMarkdown. There are great documentations online for drake thus here I only show a simple example working with RMarkdown.
RMarkdown file could be very slow to generate if lots of calculations are involved. Any small revise makes you rerun everything. When we use drake we can do all the…
</a>
</div>
</section>
</main>
<nav>
<ul class="pagination pagination-default">
<li class="page-item disabled">
<a aria-disabled="true" aria-label="First" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">««</span></a>
</li>
<li class="page-item disabled">
<a aria-disabled="true" aria-label="Previous" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">«</span></a>
</li>
<li class="page-item active">
<a aria-current="page" aria-label="Page 1" class="page-link" role="button">1</a>
</li>
<li class="page-item">
<a href="/page/2/" aria-label="Page 2" class="page-link" role="button">2</a>
</li>
<li class="page-item">
<a href="/page/3/" aria-label="Page 3" class="page-link" role="button">3</a>
</li>
<li class="page-item">
<a href="/page/2/" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">»</span></a>
</li>
<li class="page-item">
<a href="/page/3/" aria-label="Last" class="page-link" role="button"><span aria-hidden="true">»»</span></a>
</li>
</ul></nav>
</div>
<script async src="//yihui.org/js/center-img.js"></script>
<footer>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-122668586-1', 'auto');
ga('send', 'pageview');
}
</script>
<div class="footer">
<ul class="menu">
<li><a href="/"><span data-hover="Home">Home</span></a></li>
<li><a href="/tags/"><span data-hover="Tags">Tags</span></a></li>
<li><a href="/categories/"><span data-hover="Categories">Categories</span></a></li>
<li><a href="/about-me/"><span data-hover="About Me">About Me</span></a></li>
</ul>
<div class="copyright">@2024 Yang Liu <a href="https://github.com/liuyanguu">github.com/liuyanguu</a> Powered by Github.</div>
</div>
</footer>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-122668586-1', 'auto');
ga('send', 'pageview');
}
</script>
</body>
</html>