Hi all!
I am would like to create something like this:
I would appreciate any advice to do so
This is my database
metadata <- data.frame(data.frame(stringsAsFactors=FALSE,
Domain = c("Eukaryotes PR2", "Bacteria Silva 16S",
"Eukaryotes Silva 18S",
"Archaea NCBI"),
Total = c(2138457, 2594766, 1237100, 8e+05),
Group = c("Algae PR2", "Cyanobacteria Silva 16S", "Algae Silva 18S",
"Nogroup"),
Share = c("1320398", "1524609", "796201", "Nogroup")
)
)
Created on 2019-10-22 by the reprex package (v0.3.0)
and it looks like this
metadata <- data.frame(tibble::tribble(
~Domain, ~Total, ~Group, ~Share,
"Eukaryotes PR2", 2138457, "Algae PR2", "1320398",
"Bacteria Silva 16S", 2594766, "Cyanobacteria Silva 16S", "1524609",
"Eukaryotes Silva 18S", 1237100, "Algae Silva 18S", "796201",
"Archaea NCBI", 8e+05, "Nogroup", "Nogroup"
)
)
Created on 2019-10-22 by the reprex package (v0.3.0)
I would like to explain briefly what my results are about. The Domain Eukaryotes PR2, Bacteria Silva 16S and Eukaryote Silva 18S has a group of microorganisms that I would like to be represented (Algae PR2, Cyanobacteria 16s and Algae 18S respectively). The amount of each group (share) is already considered in the total. Archae has no group.
Thanks in advance
Osiris.