I have data coming from JAGS that will generate a nice caterplot via pdf() and png(), but does not run under shiny-server's renderPlot. That throws a warning "Coercing LHS to a list" and does not create a plot for shiny.
This is on
spark.rstudio.org, so I don't know if that has anything to do with it. But like I said, I can use that instance of shiny-server to call png() and pdf() without issue.
This works:
<snip>
png("AdjScoresPlot.png", width=2000, height=1600)
caterplot(scorematrix, cex.labels=0.25, main="Adjusted Scores",
xlab="Adjusted Score", ylab="Student Name")
dev.off()
</snip>
This does not work:
<snip>
output$fancyPlot <- renderPlot({
caterplot(scorematrix, cex.labels=0.25, main="Adjusted Scores",
xlab="Adjusted Score", ylab="Student Name")
)}
</snip>
Any idea what's going on?
Best,
Brad