How to custom colors in plot_ordination?
0
0
Entering edit mode
17 months ago
Amr ▴ 160

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 • 684 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: 1605 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