Skip to contents

Use shiny to return x- and y-coordinates when clicking on a plot

Usage

click_graph(x)

Source

https://shiny.posit.co/r/articles/build/plot-interaction/

Arguments

x

A saved plot

Author

Chang W, Cheng J, Allaire J, Sievert C, Schloerke B, Xie Y, Allen J, McPherson J, Dipert A, Borges B (2022). shiny: Web Application Framework for R. R package version 1.7.4, https://CRAN.R-project.org/package=shiny.

Examples

#click_graph(plot(rnorm(10),rnorm(10)))