Plotting a lot of data can be awfully slow. Let’s render plots in a
job so that we kan keep working in the meantime. To demonstrate, here’s a simple dataset with 500k rows which takes 10+ seconds to render:
ggplot2 is fast at building the plot “grammar” but rendering can be slow. So let’s build the plot in our main session but offload the rendering to a
job::job(). We need to render it to a file because the job has no viewer.