GWalkR icon indicating copy to clipboard operation
GWalkR copied to clipboard

[proposal] running gwalkr in shiny

Open ObservedObserver opened this issue 2 years ago • 2 comments

Allow users to build interactive data with gwalkr app in shiny.

Now in python ecosystem, users can use pygwalker with pyhon-shiny to build a data app

ObservedObserver avatar Oct 23 '23 04:10 ObservedObserver

Yes it's possible to integrate GWalkR into Shiny! Here is a minimal runnable code snippet to start a Shiny web app with GWalkR, and load an Iris dataset

library(GWalkR)
library(shiny)
library(bslib)
data(iris)

ui <- fluidPage(
  titlePanel("GWalkR in Shiny!"),
  gwalkrOutput("gwalkrPlot")
)

server <- function(input, output) {
  output$gwalkrPlot <- renderGwalkr({
    gwalkr(iris)
  })
}

shinyApp(ui = ui, server = server)

However, personally I don't use Shiny much for web app dev. If you need more support for features of GWalkR in Shiny, pls post the usage scenarios and requirements below 👀

bruceyyu avatar Apr 12 '24 09:04 bruceyyu

Add a function to update Gwalkr from the server, such as updateGwalkr(session, id, lang = "en", dark = "dark", ...). Additionally, consider adding a parameter to allow selecting the default tab view (e.g., displaying data instead of visualization).

noamanemobidata avatar Sep 02 '24 13:09 noamanemobidata