Comments (3)
In the example, I don't think the smile is highlighted, it's just the points are packed so densely that they appear darker due to the overlap, which makes it harder to distinguish the highlighted vs. non-highlighted points.
For example here, I have only the small cluster selected:
And it isn't clear that it's only the small cluster that's selected until I change the colour:
To show this more clearly, If I select both the small cluster along with some of the smile, the selected points in the smile do become darker:
So this could definitely be made better, but I'm not sure the best approach that will retain the alpha transparency in both the selected and non-selected points. What do you think?
from detourr.
Oh, I'm sure you're right. I kept thinking going back and forth on whether it was correct or not.What about automatically colouring the selection with the current colour? This would then make it clear what is selected or not, and allow the alpha transparency to stay as it is.
from detourr.
The problem with applying the current brush colour immediately is if some brushing / selection has already been done, the same issue will crop up again.
I think having the selection highlighted with some colour could work, but it should work separately from the brush and be cleared when the selection is cleared. There would still be some risk of the highlight colour clashing with a brush colour, but this shouldn't be much of an issue.
Alternatively, the highlighted points could be given a red border or something. Maybe a red and white border in case the points have already been brushed red.
I'm not sure what these would take to implement, but I might have time to look in to it in a few weeks.
from detourr.
Related Issues (20)
- Selection default colour to {plotly} red HOT 2
- Vignette on tour plot interactivity
- Vignette on crosstalk and other compatible htmlwidgets HOT 1
- Vignette on how to extend {detourr} for other tour methods/displays
- Change `animate_tour` function name to `detourr` HOT 2
- Add a shape aesthetic for changing the shape of points HOT 2
- Create a new widget for the slice tour
- Interactivity on mobile
- axes for the corner? HOT 1
- pkgdown home page HOT 3
- User API ideas HOT 27
- Matrix multiplication performance HOT 1
- Examples vignette
- display_sage HOT 13
- readme logo size HOT 3
- Github action to run tests and checks
- Saving colours out to file? HOT 4
- Saving colour choices to swatches HOT 6
- brushing overplotted points HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detourr.