schex icon indicating copy to clipboard operation
schex copied to clipboard

Highlight single cluster

Open f6v opened this issue 3 years ago • 3 comments

Thanks for the package, it made my analyses much more enjoyable!

I'm wondering if there's an easy way to highlight just one cluster with plot_hexbin_feature_plus. I guess there's no support for this in the package yet? If so, would you accept this change into the library? I guess I could implement it here: https://github.com/SaskiaFreytag/schex/blob/4b7d72d54bdf1812148afba06b43676f994382f6/R/plot_hexbin_feature_plus.R#L145

and I'd have to filter like so

ggplot(iris, aes(Petal.Length, Petal.Width)) +
  geom_mark_hull(aes(fill = Species, label = Species, description = desc,
                     filter = Species == 'setosa')) +

f6v avatar Oct 05 '21 09:10 f6v

Thank you for your suggestion. I will have a look in the next few weeks whether this can be easily implemented.

SaskiaFreytag avatar Oct 07 '21 03:10 SaskiaFreytag

@SaskiaFreytag I'd be happy to implement it myself if:

  1. You think it'd be useful for others
  2. You're willing to provide some guidance in case I get stuck

f6v avatar Oct 07 '21 09:10 f6v

Sure that would be great! I promise I will be faster with answering

SaskiaFreytag avatar Oct 12 '21 07:10 SaskiaFreytag