【发布时间】:2017-10-25 14:04:11
【问题描述】:
我正在使用 rmarkdown .Rmd 文件来创建 revealjs_presentation。
但是,当我使用 ggplotly 创建图表时,工具提示不再与悬停时的点对齐。这是一个例子:
---
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()
```
output: html_document 不会这样做。在浏览器的不同缩放级别下,工具提示会离悬停信息出现的点更近或更远。
有人遇到过这种情况吗?
【问题讨论】:
标签: r r-markdown reveal.js htmlwidgets