So I have finally gotten a hold of ggplot2 and ggvis packages and tried out shiny too to have interactive graphics and visualizations. but i have been using Power BI before and came to R as a an good alternative for creating effective visualizations. But there is one thing that has been missing in R which is to be able to filter out all visualizations on a page on the basis of a mouse click in one of the visualizations on the page. I understand how we can create slicers and other ways to filter graphics using shiny or better with ggvis.

So can anyone suggest a package or something i have missed in the above packages to help me achieve this.

  • $\begingroup$ I don't know if I got it, but do you want something to select a filter that impact on all of your graphics? $\endgroup$
    – TheBiro
    Dec 13, 2016 at 17:57
  • $\begingroup$ @thebiro yes exactly. but that select will be on the basis of the click on one of the graphics. $\endgroup$ Dec 14, 2016 at 4:18

1 Answer 1


You could give the plotlypackage a try. You basically code up the plot you want first with ggplot2 and then call ggplotly() at the end, which will render an interactive version of it. You get zooming in on mouse selection for example and labels of points on hover. It has a pretty extensive documentation too. I can try and help you out with a specific example if you post some code. Another cool package you can check out is trelliscopejs. hth


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.