I am inexperienced in R and I am trying to rearrange my x-axis according to the sampling dates (27-10-20, 5-11-20, 7-1-21, 4-2-21) for each category (location; LP and T) using taxa_barplot function in Qiime2R. This is the code that I used (according to the tutorial):
taxonomy<-read_qza(“taxonomy.qza”)$data %>% parse_taxonomy()
taxa_barplot(taxasums, metadata, “location”)
ggsave(“barplot.pdf”, height=4, width=8, device=“pdf”) # save a PDF 4 inches by 8 inches
And this is the metadata file: sample-metadata.tsv (397 Bytes)
This is the current barplot that I have:
Any help will be much appreciated! Thank you so much.