Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

Recently, I wrote a script to draw many images using ggplot. Although all the places where loops are needed have already been replaced with apply, it still can’t keep up when drawing hundreds of images at once. So, I fiddled around with parallel and managed to parallelize the plotting part to speed things up.

Working with R often involves encountering various issues. Here are some collected tips.

When installing packages from GitHub in R, sometimes you may encounter a connection timeout issue with GitHub. Here’s how to solve it.

Due to work requirements, I needed to install a package mentioned in a literature. Initially, I thought it would be done with two commands, but who knew there were so many dependencies to resolve… and R packages on Linux need to be compiled, which is quite time-consuming… Fortunately, there’s Conda!

During my graduate studies, I had the need to display results using maps and used R to create them. I recorded the code from that time below.

Graduate training on R at the Guangdong Provincial CDC was my first serious programming course.