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

Spin-and-brush support #6

Open
dicook opened this issue Apr 10, 2023 · 1 comment
Open

Spin-and-brush support #6

dicook opened this issue Apr 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dicook
Copy link

dicook commented Apr 10, 2023

When you are trying to cluster data, it can be useful to use a spin and brush approach.

  1. Start with all points same colour (don't know the clusters)
  2. Tour until see a cluster (gaps), and brush this group of points a selected colour
  3. Continue touring until another cluster emerges, brush this group of points a different colour
  4. Repeat 3 until no more clusters can be seen
@pfh
Copy link
Owner

pfh commented Apr 12, 2023

This feature is a bit more complex than I want to include in this widget, but I would like it to play well enough with other Javascript or Shiny code to allow someone to implement. It could make for an interesting project.

I think all the pieces are there with Javascript. The Javascript object has method renderValue, which could be used to add new groups with different colours, getState/setState to manipulate the current selection, and emits "changeSelection" events when the selection changes. Would need to use setState after a renderValue to keep the current projection and velocity.

(I am much fuzzier on what would be needed with Shiny.)

@pfh pfh added the enhancement New feature or request label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants