Skip to content

Commit 502419a

Browse files
authored
What are the possible args for "off"?
The error message says it should be "plotly_relayout" ``` > highlight(ggplotly(p), on = "plotly_selected", off = 'plotly_unhover', persis = FALSE) Error in match.arg(off, off_options) : 'arg' should be one of “plotly_doubleclick”, “plotly_deselect”, “plotly_relayout” > ```
1 parent dc9cc78 commit 502419a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/highlight.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#' 'plotly_hover', 'plotly_click', 'plotly_selected'. To disable on events
1313
#' altogether, use \code{NULL}.
1414
#' @param off turn off a selection on which event(s)? Likely candidates are
15-
#' 'plotly_unhover', 'plotly_doubleclick', 'plotly_deselect'. To disable off
15+
#' 'plotly_relayout', 'plotly_doubleclick', 'plotly_deselect'. To disable off
1616
#' events altogether, use \code{NULL}.
1717
#' @param persistent should selections persist (i.e., accumulate)?
1818
#' @param dynamic should a widget for changing selection colors be included?

0 commit comments

Comments
 (0)