Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. setwd("C:/Users/leifr/Desktop/Master/Advanced_Biometry")
  2.  
  3. getwd()
  4.  
  5. library(agricolae)
  6. library(dplyr)
  7. library(Hmisc)
  8.  
  9. ex5 <- read.csv("Ex5 - Correlation Regression.csv", sep = ";")
  10.  
  11. all <- ex5[,3:13]
  12. rcorr(as.matrix(all))
  13.  
  14. ec_atr <- lm(ec ~ atractyl, ex5 )
  15. ec_schis <- lm(ec~schismus,ex5)
  16. ec_cl <- lm(ec~clay,ex5)
  17. anova(ec_atr)
  18.  
  19. ec_atractyl <-plot(ec ~ atractyl, ex5 )
  20. abline(ec_atr)
  21. ec_clay <- plot(ec~ clay, ex5,xlab = "amount of clay", ylab = "elctric conductivity [V]")
  22. abline(ec_cl)
  23. plot(ec ~ schismus, ex5)
  24. abline(ec_schis)
  25. plot(schismus ~ atractyl, ex5)
  26.  
  27. plot(clay ~ sand, ex5, xlab="sand [%]", ylab="clay [%]")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement