Shiny Dull: Plots are blurrier in Shiny than in R-Studio

132 views
Skip to first unread message

Robert Sloan

unread,
Oct 16, 2014, 10:25:28 PM10/16/14
to shiny-...@googlegroups.com
Is there a way to make the plots in Shiny as clear and crisp as they are in R-Studio?
It seems like the dots per inch doesn't match the display i.e. fonts and lines seem scaled and thus blurred.


Greg L

unread,
Oct 19, 2014, 3:44:27 PM10/19/14
to shiny-...@googlegroups.com
I'm not sure how you're outputting plots so I can only suggest messing with Cairo options.

library(Cairo); options(shiny.usecairo=TRUE); 

or

options(shiny.usecairo=FALSE)

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 
Reply all
Reply to author
Forward
0 new messages