I know many people have had this kind of issue and there are a few of these questions on stackoverflow.
for me, my png() output looked worse when hosted on an rstudio server for some reason so I had to set shiny to not use cairo to get antialiased plots again.
Not sure if that'll work for you though. It