Plot XKCD Graphs

XKCD is a popular figure web comic with themes in mathematics, science, language, and romance created by Randall Munroe. The xkcd package provides a simple method to plot xkcd graphs. The tweet is my learning notes for xkcd: Plotting XKCD graphs.

Exploring the Wechat Friends Data Again!

About one week ago, I added a new functions to hchinamap package, that is chinamappoint() and provincepoint(). these two functions can map points on chinese map and it province map. The tweets indtroduce a method to display the geographical distribution of your wechat friends on chinese map, and also some other methods to plot wechat friends’s geographical distribution.

Spelunking macOS 'ScreenTime' App Usage & Visualizing macOS App Usage With R

This is my learning notes for Spelunking macOS ‘ScreenTime’ App Usage with R | and Visualizing macOS App Usage with a Little Help from osqueryr & mactheknife | These two tweets introduced some methods about how to spelunk macOS screentime app usage and visualize macOS app usage with R. Following the author’s guide, I reproduced the results of my own macOS.

Geographical Distribution of Students' Hometown in Ji'nan University

This tweet demonstrates a simple application of ‘hchinamap’ package. The data was collect from Ji’nan University’s library websit and sport website. Considering that this is a data set with private information, I can’t make this data public. If you want a copy, you can add my wechat to ask for it.

Welcome to My Shiny Server!

Inspired by daattali/shiny-server, I decided to build my own shiny server. Finally, I made it! Now you can access it by Since I haven’t get this server recorded (In China, all websites should be recorded at MIIT, a.k.a, Ministry of industry and information technology of China). After I get it recorded, you can access it by domain name, as is, but this domain name now is point to my blog deployed at GitHub.

Anouncement for My New R Package——sankeywheel!

Dependency wheels and sankey diagrams can be drawn by many R Packages, such as circlize, networkD3, and ggalluvial. These packages are very powerful and easy to use, so why bother to write another duplicate package? As we can see, there are some relationships exist between dependency wheels and sankey diagrams. So why not combined these two types of charts into one R function. At the same time, it would be great to add a little interactivity to the graph. ‘Highcharts’, a commercial javascript charting library, can help me realize these ideas. By binding R functions and the ‘Highcharts’ charting library, ‘sankeywheel’ package provides a simple way to draw dependency wheels and sankey diagrams.

使用 hchinamap 包进行地图描点!

在此之前,我的 hchinamap 包只能用来绘制填充地图,此次的更新添加了地图描点的功能。目前我还没完全准备好发布此次的更新,感觉仍然很乱。

Create Complete China Maps Using GGPLOT2 and SF

I always feel disappointment about how to plot a beautiful China map. Yesterday, I finally drew a beautiful China map, at least in my opinion.

Create a Shiny Application to Collect Subscribers

Recently, my interest in shiny is very strong. These two days, I try to build a shiny application to collect subscribers. Actually, it a very simple applications, but I spends a lot of time on UI design and submit action. Unfortunately, I failed to add submit action. According to my original imagine, after you input name and email address, click , then this application should return you a message to alert your submit action is successful.

Using RMySQL Package to Connect MySQL on Ubuntu Server

Last week, I bought a Ubuntu Serve to deply my blog and some shiny applications. This blog demonstrades how to connect MySQL database with R by ‘RMySQL’ package.

Update for My 'monitoring' Project!

Since My R packages are simple and useless, they are getting less and less downloaded… Until today, only 88 downloads of these three packages were made last week, so the downloads curve on my ‘monitoring’ application looks abrupt.

Build A Web Application Based on Shiny

Now that I have three R packages published on CRAN, I want to make a small tool to monitor the downloads of these three R packages. The best way for me is to build a shiny-based web application. This tweet tells how to build this shiny application.

hpackedbubble: Create Split Packed Bubble Charts

This is my second R package submitted to CRAN, By binding R functions and ‘Highcharts’ library, ‘hpackedbubble’ provides a simple way to draw split packed bubble charts. I have already show the examples of this package at my last tweet. Just like these:

It Seems that Jwen Bought Macau Dollars at Wrong Time ...

I bought foreign exchange for my clients several time during my intership in ICBC. Recently, Jwen brought a lot of Macau dollars in order to pay tuition fees. So I want to the foreign exchange price of Macau dollars of the bank of China and see if I can save some money for Jwen.

How to Submit Your R package to CRAN!

After two days of tireless submission, I finally received the passed reply at noon today!


这是为宋豪漳老师的金融工程和金融数学两门课程开发的R包,主要是关于期权定价、交易策略的一些函数和可视化的东西。(与其说这是我写的第一个 R 包,不如说这是我整理的第一个 R 包,这个 R 包里面的大部分函数都是参考其它的R包写的。)


sweep 包是帮助预测的 tidy 工具包。本文是学习:Introduction to sweepForecasting Time Series Groups in the tidyverseForecasting Using Multiple Models 三篇小品文的笔记。

The drake R package

drake 是一个 R 数据分析工作流程的工具包。旨在提高数据分析的效率和用于高性能计算。本文是其 README 的学习笔记,是个使用 drake 进行数据分析的小例子。关于这个包,未来计划学习:The drake R Package User Manual

R for Data Science(终)

这是学习 R for Data Science 的最后一篇笔记了。可以确定这是本很好的书。


这是坐火车的时候在写的一个简单的 R 包,可以用来绘制单词树。使用的是 Google 图表库的 js 文件。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now