I have created a barplot for metagenomic data using RStudio
plot_bar(mp3, "Sampletype", fill = "Family", title = title)
But I am getting lines inside the bar.I need clear bars without any lines. How to do it?
library("phyloseq"); packageVersion("phyloseq")
library("biomformat"); packageVersion("biomformat")
library("ggplot2"); packageVersion("ggplot2")
library("phyloseq"); packageVersion("phyloseq")
library("biomformat"); packageVersion("biomformat")
library("ggplot2"); packageVersion("ggplot2")
biom1 = biomformat::read_biom(biom_file = "otu_table.json.biom")
mp0 = import_biom(biom1, parseFunction = parse_taxonomy_greengenes)
tax_table(mp0) <- tax_table(mp0)[, 1:7]
treeFile1 = "rep_set.tre"
tree1 = read_tree(treeFile1)
tree1
class(tree1)
mp2 = merge_phyloseq(mp1, tree1) mp2 repseqFile = "seqs_rep_set.fasta"
bs1 = Biostrings::readDNAStringSet(repseqFile) names(bs1) <- gsub("\s.+$", "", names(bs1))
sum(names(bs1) %in% taxa_names(mp2)) mp3 = merge_phyloseq(mp2, bs1)
plot_bar(mp3, "Sampletype", fill = "Family", title = title)