简体   繁体   中英

Get data from mouse events in plot.ly or ggvis within r (not shiny)

我想在R中使用交互式绘图,以便能够选择绘图中的x间隔,我已经尝试了plot.ly和ggvis,看来鼠标单击绘图后再进行水平拖动,这正是我想要的,但是必须禁用缩放功能,并且必须将[x start,x end]值返回给R。如果可以的话,有什么想法?

I tried to make tooltip function available with static_output (without shiny). You can check my fork ( https://github.com/lujiacn/ggvis ), enable the tooltip by default, in Rstudio and output html widget.

The way is put tooltip content in one variable called "tooltip". If no "tooltip" variable, wills show the all values linked to the data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM