Skip to content

Instantly share code, notes, and snippets.

View ZeroLi-Bio's full-sized avatar

ZYLI ZeroLi-Bio

View GitHub Profile
@aagarw30
aagarw30 / eventdata.R
Created April 1, 2020 08:00
Interactive data point selection with ggplotly/plotly charts
## Load required packages
library(plotly)
library(ggplot2)
library(shiny)
## Defining a key column in mtcars which will be used for event handling in event_data()
mtcars$key <- row.names(mtcars)