Trevor Paulsen
unread,May 9, 2013, 6:12:24 PM5/9/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shiny-...@googlegroups.com
I've found an unusual error I can't figure out when using the following plot command:
xVar = input$bubbleX
yVar = input$bubbleY
rows = dim(summaryTable)[1]
cols = dim(summaryTable)[2]
x=2
y=2
symbols(summaryTable[x,1:(cols-1)], summaryTable[y,1:(cols-1)], sqrt(summaryTable[1,1:(cols-1)]/pi), inches = 1, fg="white", bg="blue", xlab = xVar, ylab = yVar)
text(summaryTable[x,1:(cols-1)], summaryTable[y,1:(cols-1)], c(1:(cols-1)), cex=1, col="white")
This plot works fine for me in a normal R plot and in the Shiny render just fine.
However, if I change x and y to be
x = as.numeric(which(numericVarNames == xVar) + 1)
y = as.numeric(which(numericVarNames == yVar) + 1)
(which in this case each of those expressions evaluate to 2 as well) I get "Error: need finite 'xlim' values" when trying this in Shiny, but the plots work just fine from the R console. Clearly, I'm not getting the difference between a normal R plot and a Shiny plot.
Any ideas what might be wrong?
Thanks,
Trevor