Guest User

Untitled

a guest
Jan 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. library(ggplot2)
  2. Volume_mL <- 0:20
  3.  
  4. pH_sub1 <- c(6.62, 6.66, 6.65, 6.65, 6.62, 6.60, 6.53, 6.48, 6.43, 6.38, 6.31,
  5. 6.25, 6.09, 6.03, 5.95, 5.87, 5.74, 5.69, 5.62, 5.54, 5.45)
  6.  
  7. pH_sub2 <- c(6.65, 6.76, 6.97, 7.12, 7.54, 8.02, 8.32, 8.53, 8.67, 8.78, 8.87,
  8. 8.93, 9.00, 9.03, 9.09, 9.15, 9.20, 9.23, 9.27, 9.31, 9.34)
  9.  
  10. DataF <- data.frame(Volume_mL, pH_sub1, pH_sub2)
  11.  
  12. ggplot(data = DataF) +
  13. geom_point(aes(x = Volume_mL, y = pH_sub1, color = "Product 1")) +
  14. geom_line(aes(x = Volume_mL, y = pH_sub1, color = "Product 1")) +
  15. geom_point(aes(x = Volume_mL, y = pH_sub2, color = "Product 2")) +
  16. geom_line(aes(x = Volume_mL, y = pH_sub2, color = "Product 2"))
Add Comment
Please, Sign In to add comment