-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added code for plotly #19
Comments
Thanks.Will have a look. But there is use cases where you don't want the group to be x for example you might want x and the factor color you chose. Ggplot automatically choose the combination of factors and I have this to be able to have boxplots and overlay a median lines colored by a factor.Plotly is in part implemented but indeed having more things working is desirable. From: [email protected]: March 23, 2018 7:27 AMTo: [email protected]: [email protected]: [email protected]: [smouksassi/ggplotwithyourdata] added code for plotly (#19) Hello! I think I might know a way to allow plotly to work on your app.
you would have to add this to server.R:
output$plotly.plot <- renderPlotly({ ggplotly(plotObject()) })
output$ui_plotly <- renderUI({ plotlyOutput('plotly.plot', width = "100%" ,height = input$height) })
But doing that your box plots will not work because when you have no input in Groups, your group is an empty column, and plotly cannot read it.
geom_boxplot(aes(group=NULL)
My suggestion to get it working is to replace NULL withinput$x:
geom_boxplot(aes_string(group=input$x)
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
Dear winsonfzyang , |
Hello smouksassi, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I think I might know a way to allow plotly to work on your app.
you would have to add this to server.R:
output$plotly.plot <- renderPlotly({ ggplotly(plotObject()) })
output$ui_plotly <- renderUI({ plotlyOutput('plotly.plot', width = "100%" ,height = input$height) })
But doing that your box plots will not work because when you have no input in Groups, your group is an empty column, and plotly cannot read it.
geom_boxplot(aes(group=NULL)
My suggestion to get it working is to replace NULL with
input$x:
geom_boxplot(aes_string(group=input$x)
The text was updated successfully, but these errors were encountered: