We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like plotly to support ggrepel::geom_text_repel. I prepare the following shiny that works with plotOutput but not with plotlyOutput :
ggrepel::geom_text_repel
library(shiny) library(plotly) library(ggplot2) library(ggrepel) library(bslib) ui <- page_sidebar( title = "Hello Shiny!", sidebar = sidebar( selectizeInput( inputId = "Test", label = "Tests to show", choices = paste("Test",1:272), multiple = TRUE ) ), plotlyOutput(outputId = "distPlot") ) server <- function(input, output) { output$distPlot <- renderPlotly({ x<-faithful x$test<-paste("Test",1:272) ggplot(x,aes(x=eruptions,y=waiting))+ geom_point()+ geom_text_repel(data = x[match(input$Test,x$test),], aes(label = test), color="blue") }) } shinyApp(ui = ui, server = server)
Marjorie Leduc Add a comment
The text was updated successfully, but these errors were encountered:
Duplicate of #2408
Sorry, something went wrong.
No branches or pull requests
I would like plotly to support
ggrepel::geom_text_repel
.I prepare the following shiny that works with plotOutput but not with plotlyOutput :
Marjorie Leduc
Add a comment
The text was updated successfully, but these errors were encountered: