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.