Skip to content

Instantly share code, notes, and snippets.

Kasia KKulma

View GitHub Profile
@KKulma
KKulma / shiny-select-group-from-plot
Created Feb 12, 2019
The app demonstrates how to fetch group info information from `plot_click` attribute and use it to subset a `dataTableOutput`.
View shiny-select-group-from-plot
library(shiny)
library(ggplot2)
library(DT)
### The app demonstrates how to fetch group info information from `plot_click` attribute and use it to subset a `dataTableOutput`.
### redoing the SO answer from https://stackoverflow.com/a/38919892/6327771 (example 2)
ui <- fluidPage(
# selectInput("var_y", "Y-Axis", choices = names(iris)),
View shiny-dbclick-reveal-group.R
library(shiny)
library(ggplot2)
### redoing the SO answer from https://stackoverflow.com/a/38919892/6327771 (example 2)
ui <- fluidPage(
# selectInput("var_y", "Y-Axis", choices = names(iris)),
plotOutput("distPlot", dblclick = "plot_click"),
uiOutput("dynamic")
You can’t perform that action at this time.