Skip to content

Set plot brush programmatically - #2888

Open
mjakubczak wants to merge 3 commits into
rstudio:mainfrom
mjakubczak:master
Open

mjakubczak wants to merge 3 commits into
rstudio:mainfrom
mjakubczak:master

Conversation

@mjakubczak

Copy link
Copy Markdown

This PR allows to set a plot brush programmatically. It resolves #1456.

It is possible to set the brush from the backend using:

session$setBrush(
  brushId = "plot_brush", 
  coords = list(xmin=1, xmax=3, ymin=2, ymax=4), # domain scale
  panel = 1
)

or from JS:

Shiny.setBrush('plot_brush', {xmin:1,xmax:3,ymin:2,ymax:4}, 0)

All unit tests are passing (1 skipped due to the direct skip in the test):

OK:       1168
Failed:   0
Warnings: 0
Skipped:  1

Please let me know if anything is missing or requires some changes.

@CLAassistant

CLAassistant commented May 12, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cpsievert cpsievert added this to the 1.6 milestone May 14, 2020
@wch wch modified the milestones: 1.6, 1.7 Dec 4, 2020
@cpsievert cpsievert removed this from the 1.7 milestone Jun 29, 2021
@dvg-p4

dvg-p4 commented Jun 7, 2022 •

Copy link
Copy Markdown
Contributor

Is there a reason this hasn't been merged into master?

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set ggplot2's plot brush programmatically Shiny

5 participants