Skip to content
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

Issue with brushing when there are multiple plots on the same page #2

Open
garthtarr opened this issue Apr 28, 2015 · 2 comments
Open
Labels

Comments

@garthtarr
Copy link
Owner

There's an issue with the brushing if there is more than one pairsD3 plot on the same webpage.

This arises naturally if you're making a rmarkdown report (as shown below). The brushing only works correctly for the final plot on a page.

Note that in the example below, if you only have the first two plots (which have overlapping sets of variables), there is a strange partial bushing link between the two plots.

Any help on how to solve this would be much appreciated.


---
title: "Brushing not working"
author: "Garth"
date: "27 April 2015"
output: html_document

---

First plot:

```{r plot1}
require(pairsD3)
pairsD3(iris)
```

A subset of the same data:

```{r plot2}
pairsD3(iris[,1:4], group = iris$Species)
```

Completely different data set:

```{r plot3}
pairsD3(matrix(rnorm(1000),ncol=5))
```
@nickforr
Copy link

Hi, just wondered if you'd had any further insights into this? I managed a crude workaround using iframes, based on this: rstudio/revealjs#11 but something cleaner would be nice.
Cheers
Nick

@garthtarr
Copy link
Owner Author

I haven't made any progress here, the iframe "solution" is the only fix I'm aware of.

@garthtarr garthtarr added the bug label Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants