Plot 3D in existing shiny panel

Asked by Fernando

Hello!

I'm trying to plot a 3d graphic in an existing shiny panel of my app. To do so, I defined a rglwidget object in my ui.R:

rglwidgetOutput("rgl2"),

After that, I call renderRglwidget in the server.R

      output$rgl2 <- renderRglwidget({

      plot3d(Y_scaledg[,indexes_choices[1]], Y_scaledg[,indexes_choices[2]], Y_scaledg[,indexes_choices[3]], pch = ".", col = spineClusterd, bty = "f", cex = 2, colkey = FALSE,xlab=features[indexes_choices[1]],ylab=features[indexes_choices[2]],zlab=features[indexes_choices[3]])

      })

The plot is correctly displayed but in a new rgl window, not in my existing panel. Moreover, in my existing panel an error message is displayed:

Error in $: $ operator is invalid for atomic vectors

Do you know how can I display the plot3d in my existing shiny panel?

Thank you very much!

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu r-cran-rglwidget Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.