Load packages
library("ampvis")
Load data
data(DNAext_1.0)
Relative comparison at Order level
amp_heatmap(data = bbn,
group = "Beadbeating",
tax.aggregate = "Order",
tax.empty = "remove",
tax.class = "p__Proteobacteria",
order.x = c("20s4ms","20s6ms","80s4ms","40s6ms","80s6ms","160s6ms","400s6ms"),
order.y = "400s6ms",
plot.colorscale = "log10",
scale.seq = 100,
tax.show = 50,
tax.add = "Phylum",
plot.theme = "clean",
plot.text.size = 2
) +
scale_x_discrete(labels = c("20s\n4m/s","20s\n6m/s","80s\n4m/s","40s\n6m/s","80s\n6m/s","160s\n6m/s","400s\n6m/s")) +
theme(axis.text.x = element_text(size = 6, color = "black", hjust = 0.4, angle = 0))
ggsave("plots/S8_Fig.eps", width = 120, height = 150, units = "mm")