From a8603e40aec573151b73b5bece5e2fb7af4f06a2 Mon Sep 17 00:00:00 2001 From: bm5tev3 <59709068+bm5tev3@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:57:30 -0700 Subject: [PATCH] Update action-graphics.Rmd (#509) --- action-graphics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action-graphics.Rmd b/action-graphics.Rmd index c7836c53..e35399c6 100644 --- a/action-graphics.Rmd +++ b/action-graphics.Rmd @@ -75,7 +75,7 @@ I'll then give a couple of examples of updating the plot with the results of the The point events return a relatively rich list containing a lot of information. The most important components are `x` and `y`, which give the location of the event in data coordinates. -But I'm not going to talk about this data structure, since you'll only need in relatively rare situations (If you do want the details, use [this app](https://gallery.shinyapps.io/095-plot-interaction-advanced/) in the Shiny gallery). +But I'm not going to talk about this data structure, since you'll only need it in relatively rare situations (If you do want the details, use [this app](https://gallery.shinyapps.io/095-plot-interaction-advanced/) in the Shiny gallery). Instead, you'll use the `nearPoints()` helper, which returns a data frame containing rows near[^action-graphics-2] the click, taking care of a bunch of fiddly details. [^action-graphics-2]: Note that it's not called `nearestPoints()`; it won't return any thing if you don't click near an existing data point.