When working on an R Notebook I want the plots to be vector, so I specify that in the code chunk header using dev="svg", in addition to:
dev="svg"