match colour of legend clusters in two different plots in shiny

I have two separate plots (violin plots and UMAP plots), I ploted them by plotly and ggplot, I used subplot to show them on a page. I have a problem, there are some clusters, the color of clusters isn't match in these plots, how can I match the color?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.