SaskiaFreytag / schex

72 stars 9 forks source link

Highlight single cluster #21

Open f6v opened 3 years ago

f6v commented 3 years ago

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')) +
SaskiaFreytag commented 3 years ago

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

f6v commented 3 years ago

@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
SaskiaFreytag commented 3 years ago

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