SHARE
TWEET

Untitled

a guest Nov 8th, 2017 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Zad 7 A Dla 'popiopłu'
  3. #
  4. plot(wina.5_mod$Ash, main = 'Wykres wartości zmiennych, oddalenia, mediany dla zawartości popiołu', xlab = 'Liczność', ylab = 'Wartość')
  5. points(q, type="p", col="red", lwd = 2)
  6. lines(mean(wina.5_mod$Ash))
  7. abline(h = mean(wina.5_mod$Ash), col = "yellow", lwd = 5)
  8. abline(h = median(wina.5_mod$Ash), col = "green", lwd = 1)
  9.  
  10. #
  11. # Zad 7 B
  12. #
  13. hist(wina.5_mod$Alcohol, 15, main='Zawartość alkoholu', xlab='Zawartość alkoholu w %', ylab='Ilość', col="pink")
  14. hist(wina.5_mod$Ash, 30, main='Popiół', xlab='Popiół', ylab='Ilość', col="red")
  15. hist(wina.5_mod$Alcalinityofash, 20, main='Alkaliczność', xlab='%', ylab='Ilość', col="purple")
  16. hist(wina.5_mod$Total_phenols, 20, main='Zawartość fenoli', xlab='mg', ylab='Ilość', col='orange')
  17. hist(wina.5_mod$Magnesium, 40, main='Zawartość magnezu', xlab='mg', ylab='Ilość', col="purple")
  18.  
  19. #
  20. # Zad 7 C
  21. #
  22.  
  23. boxplot(wina.5_mod$Alcohol,wina.5_mod$Ash, wina.5_mod$Alcalinityofash,wina.5_mod$Total_phenols, main='Wykres pudełkowy', xlab='Cechy', ylab='Liczebności', names = c('Alkohol','Mętność','Alkaliczność', 'Fenole'), col = 'yellow')
  24. boxplot(wina.5_mod$Magnesium, main='Magnez', xlab='Magnez', ylab='Wykres pudełkowy', col = 'yellow')
  25.  
  26. #
  27. # Zad 7 D
  28. #
  29. plot(wina.5_mod$Magnesium, wina.5_mod$Alcohol, main='Para - Magnez - Alkohol', ylab = 'Magnez', xlab = 'Alkohol', col="red")
  30. abline(lm(wina.5_mod$Magnesium ~ wina.5_mod$Alcohol), col="red", lwd=5.5)
  31. plot(wina.5_mod$Total_phenols, wina.5_mod$Alcalinityofash, main='Para - Fenole - Alkaliczność', ylab = 'Fenole', xlab = 'Alkaliczność', col="orange")
  32. plot(wina.5_mod$Ash, wina.5_mod$Alcohol, main='Para - Popiół - Alkohol', ylab = 'Popiół', xlab = 'Alkohol', col="violet")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top