Why does a ggplot look slightly different in rstudio compared to markdown?

Thanks @mara and @technocrat

I have noticed that very thin lines look different between my Default graphics device and the Cairo/agg devices.

I'm wondering if there are recommendations about what to use. I've added this as a seperate question