Skip to content
Home ยป ggplot2


How to add confidence intervals to a line in ggplot2 (R)

In this blog post, you’ll learn how to add confidence intervals to a line plot in R in the popular ggplot2 visualization package, part of the tidyverse. First, let’s create some random data to work with. For demonstrational purposes, I’ve created two time series from two normally-distributed random variables. These… 

How to anti-alias plots in R

In this blog post I elaborate on anti-aliasing in R. Some feedback I received quite a while is that the plots produced by ggplot2 in R aren’t as pretty as those produced by Microsoft Office, or even Python’s Matplotlib. This feedback is justified, because R doesn’t anti-alias it’s produced plots.…