Load packages

library("ampvis")

Load data

data(DNAext_1.0)

Figure 4A: Yield vs. bead beating intensity

ggplot(S_BB, aes(x=Beadbeating, y=Concentration)) +
  geom_point(size = 1.5) +
  ylab("Concentration [ng/ul]") +
  ylim(0, 250) +
  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(hjust = 0.5, size = 8, color = "black"),
        axis.text.y = element_text(size = 8, color = "black"),
        axis.title.y = element_text(vjust = 1, size = 8),
        axis.title.x = element_blank(),
        panel.grid = element_blank(),
        panel.background = element_blank(),
        axis.line = element_line(color = "black"),
        title = element_text(size = 8),
        plot.margin = unit(c(0,0,0,0), "mm"),
        axis.ticks.length = unit(1, "mm"),
        axis.ticks = element_line(color = "black")
   ) 

Save

ggsave("plots/Fig4A.eps", width = 60, height = 40, units = "mm")