Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
Thanks for this very useful package. We have been using it a lot recently and would like to be able to change the clusters' labels and colors when using rainette_plot(). The rationale behind this is that we use the rainette package's results for further analysis and would like to show the clustering's results once and for all (with final, "interpreted" labels for clusters, and custom colors).
I have implemented this in this PR , mainly through new argument "colors" and possibility that previous argument "cluster_label" is actually a vector of size k (number of clusters). I have put an example in the plot_rainette() function examples section. As far as I have seen it runs smoothly and does not change anything in case cluster_label has size 1 and custom colors are not provided.
I hope it can be useful, but please feel free not to include it if you do not find it relevant.
Cheers,
Lise