Skip to content

Set ggplot2's plot brush programmatically Shiny #1456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
baniani opened this issue Nov 3, 2016 · 6 comments · May be fixed by #2888 or #3683
Open

Set ggplot2's plot brush programmatically Shiny #1456

baniani opened this issue Nov 3, 2016 · 6 comments · May be fixed by #2888 or #3683

Comments

@baniani
Copy link

baniani commented Nov 3, 2016

So there is a blue semi-transparent brush/rectangle that you can drag and then move on ggplot2 with your mouse, you can get its xmin, xmax, ymin and ymax by observing the brush. How can I do the other way around? How can I set its xmin, xmax, ymin and ymax and move resize the brush programmatically?

@pata-eth
Copy link

pata-eth commented Nov 8, 2016

I have a similar question/suggestion as I would like to be able to programmatically change the direction of the brush (for example from 'x' to 'y'). Thank you!

@wch wch added the backlog label Nov 17, 2016
@sedot42
Copy link

sedot42 commented Apr 12, 2017

I am facing the same problem, but with base plot as well. Did anyone find a solution? Otherwise there should possibly be a feature request.

@wch
Copy link
Collaborator

wch commented Apr 12, 2017

We're planning on doing this for a future release of Shiny, although we don't have the timeframe set yet.

@awerni
Copy link

awerni commented Mar 4, 2020

I would also like to change the brush area programmatically. With hundreds of bars in a waterfall plot, it is difficult to select properly with the mouse. I would like to have a textInput with a reactive to modify the brush area. Any option to do this with js?

@dvg-p4
Copy link
Contributor

dvg-p4 commented Jun 7, 2022

Is there a problem with that pull request from 2 years ago?

Edit to answer my own question: yes there is, it appears that almost the entirety of the JS codebase has been refactored since this pull request was created.

Edit 2: currently working on my own pull request for this now!

@dvg-p4
Copy link
Contributor

dvg-p4 commented Jul 7, 2022

Nearing a workable solution that also fixes some other brush-related issues at https://github.com/dvg-p4/shiny , will be creating a pull request soon

@dvg-p4 dvg-p4 linked a pull request Aug 13, 2022 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment