I'm using an rmarkdown .Rmd
file to create a revealjs_presentation
.
However, when I create a chart using ggplotly
, the tooltip no longer lines up with the points when hovering. Here is an example:
---
title: ""
output:
revealjs::revealjs_presentation:
center: true
---
```{r setup, include=FALSE}
library(tidyverse)
library(plotly)
```
Plotly
------------------------------
```{r, echo=F, message=F}
(ggplot(mtcars, aes(wt, mpg)) + geom_point()) %>%
ggplotly()
```
It doesn't do this with output: html_document
. At different zoom levels in the browser, the tooltip gets closer or further away from the point when the hover information appears.
Has anyone run into this?