Closed
Description
Hi
I'm trying to use Plotly with ioslides presentations and ran into the problem that hovering over the plot didn't show information for data points. This bug is somehow related to using multiple plots.
In the following example, I use the same plot on two slides. Hovering does not work with the first plot but it works with the second plot.
RMarkdown Document:
---
title: "Plotly Bug"
output: ioslides_presentation
runtime: shiny
---
```{r, include=FALSE}
library(plotly)
```
## First Plot
```{r, echo=FALSE}
plot_ly(economics, x = date, y = uempmed, mode = "markers")
```
## Second Plot
```{r, echo=FALSE}
plot_ly(economics, x = date, y = uempmed, mode = "markers")
```
Output of devtools::session_info()
Session info ----------------------------------------------------------------------------------------------------
setting value
version R version 3.2.3 (2015-12-10)
system x86_64, darwin14.5.0
ui RStudio (0.99.878)
language (EN)
collate de_DE.UTF-8
tz Europe/Berlin
date 2016-02-13
Packages --------------------------------------------------------------------------------------------------------
package * version date source
base64enc 0.1-3 2015-07-28 CRAN (R 3.2.0)
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.0)
devtools 1.9.1 2015-09-11 CRAN (R 3.2.0)
digest 0.6.8 2014-12-31 CRAN (R 3.2.0)
ggplot2 * 2.0.0 2015-12-18 CRAN (R 3.2.3)
gridExtra 2.0.0 2015-07-14 CRAN (R 3.2.0)
gtable 0.1.2 2012-12-05 CRAN (R 3.2.0)
htmltools 0.3 2015-12-29 CRAN (R 3.2.3)
htmlwidgets 0.5 2015-06-21 CRAN (R 3.2.0)
httr 1.0.0 2015-06-25 CRAN (R 3.2.0)
jsonlite 0.9.19 2015-11-28 CRAN (R 3.2.2)
magrittr 1.5 2014-11-22 CRAN (R 3.2.0)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.0)
munsell 0.4.2 2013-07-11 CRAN (R 3.2.0)
plotly * 2.4.4 2016-02-13 Github (ropensci/plotly@b79e9d2)
plyr 1.8.3 2015-06-12 CRAN (R 3.2.0)
R6 2.1.1 2015-08-19 CRAN (R 3.2.0)
Rcpp 0.12.2 2015-11-15 CRAN (R 3.2.2)
rmarkdown 0.9.5 2016-02-13 Github (rstudio/rmarkdown@1a76e23)
rstudioapi 0.4.0 2015-12-09 CRAN (R 3.2.3)
scales 0.3.0 2015-08-25 CRAN (R 3.2.0)
stringi 1.0-1 2015-10-22 CRAN (R 3.2.0)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.0)
viridis 0.3.2 2015-12-31 CRAN (R 3.2.3)
yaml 2.1.13 2014-06-12 CRAN (R 3.2.0)