How to custom colors in plot_ordination?
0
0
Entering edit mode
2.0 years ago
Amr ▴ 180

How to custom colors in plot_ordination? so instead of blue degrees for every cage number I can make it like red, blue, green etc? enter image description here

plot_ordination(physeq.alpha, GP.ord, type='cage',color = "cage", title = 'PCoA of Bray-Curtis Distance by Cage Type')

Thanks

PCoA plot_ordination beta_diversity • 826 views
ADD COMMENT
0
Entering edit mode

For starters, you want to change your cage values to factors.

ADD REPLY
0
Entering edit mode

I did that but it gives me one color:

plot_ordination(physeq.alpha, GP.ord, type='cage',color = as.factor("cage"), title = 'PCoA of Bray-Curtis Distance by Cage Type')

ADD REPLY

Login before adding your answer.

Traffic: 2314 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6