= read.table('data/hNAD_PC1')
nair_pc1 = read.table('data/Other_PC1')
b_compartment = data.frame(pc1 = c(nair_pc1$V6,b_compartment$V6),group = c(rep('hNAD',dim(nair_pc1)[1]),
df rep('non-hNAD',dim(b_compartment)[1])),
dose = 'B compartment')
library(ggplot2)
<- ggplot(df, aes(x=dose, y=pc1, fill=group)) +
bp geom_boxplot(width=0.4)+scale_fill_manual(values=c("#2BA809", "#00BFC4"))+
labs(title="",x="", y = "PC1")+ylim(-0.05,0)
+ theme_classic() bp
## Warning: Removed 202 rows containing non-finite values (stat_boxplot).