在R中,使用Plotly如何提取与Zoom-In工具相关的数据框架?
这是我的代码:
library(gapminder)
ggplotly(ggplot(gapminder %>% filter(country == "Chile")) + aes(x = year, y = pop) + geom_line())
然后我在工具中使用Zoom:
“>
我的问题是:我如何访问/访问/提取与此输出相关的数据帧?
有帮助吗?
This my code:
library(gapminder)
ggplotly(ggplot(gapminder %>% filter(country == "Chile")) + aes(x = year, y = pop) + geom_line())
Then I use the zoom in tool:
Then I have this output:
My question is: How can I access/extract the dataframe related to this output?
Any help ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您需要这个:我们可以使用
crosstalk
:I guess you need this: We can do it with
crosstalk
: