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")

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