Skip to content

Rearrange sample in Taxonomy plot based on groups #7

@Jawen-D

Description

@Jawen-D

Hi Kai,

I need help in rearranging samples in the results of my taxonomy plot based on groups and relative abundance.

I used this script and produce this:

plotbar(norm,level="Phylum")
e3e15255-47e7-4f36-b54c-0b07e75cea9d

I want to reorder my samples like this:
sampleorder <- c(Control=c("YHY", "LJH", "KSH", "HSO", "LCH", "KHK", "HMG", "GYJ", "NYJ", "CYY"),(Patient=c("GSJ_R", "GSJ_L", "JSA_R", "OJY_L", "OJY_R", "CCS_L", "CCS_R", "PIR_R", "LEJ_L", "JSA_L", "LEJ_R", "KEJ_R", "KEJ_L", "PIR_L")))

Thanks
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions