library(readxl)
library(tidyverse)
library(summarytools)
library(leaflet)
library(dplyr)
TRIGO <- read_excel("Trabajo final R Estadistica/TRIGO.xlsx")
datos_filtrados <-TRIGO %>%
filter(Localidad == "MAJ")
leaflet() %>%
addProviderTiles(providers$Esri.WorldImagery) %>%
setView(lng = -62.10678,lat =-32.72000, zoom = 17)
leaflet() %>% addProviderTiles(providers$Esri.WorldImagery) %>% addTiles()%>%
addPolygons(lng = c(-62.11004,-62.10147,-62.10258,-62.11090),lat =c(-32.71747,-32.71886,-32.72291,-32.72173),color = "blue") %>%
addMarkers(lng =-62.11004,lat =-32.71747)
summary(datos_filtrados)
## Año Localidad Tratamiento Genotipo
## Min. :2007 Length:230 Length:230 Length:230
## 1st Qu.:2010 Class :character Class :character Class :character
## Median :2011 Mode :character Mode :character Mode :character
## Mean :2010
## 3rd Qu.:2012
## Max. :2012
## Rendimiento
## Min. :1703
## 1st Qu.:3668
## Median :4424
## Mean :4468
## 3rd Qu.:5390
## Max. :7240
datos_filtrados$Tratamiento <-as.factor(datos_filtrados$Tratamiento)
datos_filtrados$Rendimiento <-as.numeric(datos_filtrados$Rendimiento)
ggplot(datos_filtrados,aes( x=Rendimiento , y = Genotipo,shape = Genotipo ))+
geom_bar(stat = "identity")+
labs(title = "Distintas variedades que se sembraron en la localidad MAJ")
Rendimiento_promedio <- aggregate(Rendimiento ~ Genotipo,data = datos_filtrados,mean)
freq(TRIGO$Genotipo)
## Frecuencias
## TRIGO$Genotipo
## Tipo: Alfahnumérico
##
## Frec. % Válido % Válido acu. % Total % Total acu.
## -------------------- ------- ---------- --------------- --------- --------------
## ACA601 3 0.072 0.072 0.072 0.072
## ACA801 53 1.271 1.343 1.271 1.343
## ACA901 224 5.372 6.715 5.372 6.715
## ACA903 170 4.077 10.791 4.077 10.791
## ACA905 51 1.223 12.014 1.223 12.014
## ACA906 170 4.077 16.091 4.077 16.091
## ACA907 63 1.511 17.602 1.511 17.602
## AGPFast 162 3.885 21.487 3.885 21.487
## Arex 171 4.101 25.588 4.101 25.588
## ATLAX 162 3.885 29.472 3.885 29.472
## B75ANIVERSARIO 168 4.029 33.501 4.029 33.501
## Baguette501 6 0.144 33.645 0.144 33.645
## Baguette9 60 1.439 35.084 1.439 35.084
## BIOINTA1001 54 1.295 36.379 1.295 36.379
## BIOINTA1002 108 2.590 38.969 2.590 38.969
## Biointa1005 225 5.396 44.365 5.396 44.365
## Biointa1006 225 5.396 49.760 5.396 49.760
## Biointa1007 57 1.367 51.127 1.367 51.127
## BuckPleno 48 1.151 52.278 1.151 52.278
## BUCKPUELCHE 117 2.806 55.084 2.806 55.084
## Cronox 167 4.005 59.089 4.005 59.089
## Floripan100 57 1.367 60.456 1.367 60.456
## KLEINCASTOR 54 1.295 61.751 1.295 61.751
## KLEINCHAJA 51 1.223 62.974 1.223 62.974
## KleinLeon 117 2.806 65.779 2.806 65.779
## KleinNutria 171 4.101 69.880 4.101 69.880
## KleinProteo 3 0.072 69.952 0.072 69.952
## KleinRayo 170 4.077 74.029 4.077 74.029
## KleinTauro 270 6.475 80.504 6.475 80.504
## KleinTIGRE 168 4.029 84.532 4.029 84.532
## KleinZorro 216 5.180 89.712 5.180 89.712
## LE2330 3 0.072 89.784 0.072 89.784
## LE2331 159 3.813 93.597 3.813 93.597
## LE2333 36 0.863 94.460 0.863 94.460
## LE2357 63 1.511 95.971 1.511 95.971
## ONIX 54 1.295 97.266 1.295 97.266
## SY300 114 2.734 100.000 2.734 100.000
## <NA> 0 0.000 100.000
## Total 4170 100.000 100.000 100.000 100.000
report.mas=FALSE
justity = "center"
datos_filtrados %>%
group_by(Genotipo) %>%
descr(Rendimiento)
## Estadísticas descriptivas
## Rendimiento por Genotipo
## Data frame: datos_filtrados
## N: 3
##
## ACA601 ACA801 ACA901 ACA903 ACA905 ACA906 ACA907 AGPFast
## ------------------ --------- --------- --------- --------- --------- --------- --------- ---------
## Media 4263.33 4436.67 4373.53 4031.33 5596.67 4486.00 4286.67 4972.56
## Dev.std. 768.46 681.57 1235.54 1297.68 962.31 1274.14 306.65 1401.70
## Min 3610.00 3650.00 2296.00 2125.00 4500.00 2181.00 4000.00 3551.00
## Q1 3610.00 3650.00 3721.00 3142.50 4500.00 3777.00 4000.00 4140.00
## Mediana 4070.00 4810.00 4245.00 3819.50 5990.00 4150.50 4250.00 4370.00
## Q3 5110.00 4850.00 5580.00 4890.00 6300.00 5375.00 4610.00 6120.00
## Max 5110.00 4850.00 5960.00 6280.00 6300.00 6840.00 4610.00 7240.00
## DAP 682.00 59.30 1401.06 1078.59 459.61 1317.29 370.65 1194.98
## RI 750.00 600.00 1617.00 1423.75 900.00 1548.00 305.00 1980.00
## CV 0.18 0.15 0.28 0.32 0.17 0.28 0.07 0.28
## Asimetría 0.24 -0.38 -0.27 0.35 -0.34 0.10 0.12 0.53
## ES-Asimetría 1.22 1.22 0.58 0.64 1.22 0.64 1.22 0.72
## Curtosis -2.33 -2.33 -1.35 -1.23 -2.33 -0.85 -2.33 -1.56
## Num.Válido 3.00 3.00 15.00 12.00 3.00 12.00 3.00 9.00
## Pct.Válido 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00
##
## Table: Table continues below
##
##
##
## ATLAX Arex B75ANIVERSARIO BIOINTA1001 BIOINTA1002 BUCKPUELCHE
## ------------------ --------- --------- ---------------- ------------- ------------- -------------
## Media 5366.67 4295.33 5102.22 5036.67 5180.00 4201.67
## Dev.std. 1117.40 1404.60 671.30 1067.91 420.00 1002.39
## Min 4300.00 1703.00 4280.00 3830.00 4760.00 2760.00
## Q1 4320.00 3427.00 4400.00 3830.00 4760.00 3330.00
## Mediana 5190.00 4516.50 5140.00 5420.00 5180.00 4370.00
## Q3 6540.00 4962.50 5660.00 5860.00 5600.00 4900.00
## Max 6660.00 6560.00 6000.00 5860.00 5600.00 5480.00
## DAP 1304.69 971.10 1037.82 652.34 622.69 1163.84
## RI 2000.00 1105.25 1260.00 1015.00 420.00 1207.50
## CV 0.21 0.33 0.13 0.21 0.08 0.24
## Asimetría 0.11 -0.27 -0.04 -0.31 0.00 -0.20
## ES-Asimetría 0.85 0.64 0.72 1.22 1.22 0.85
## Curtosis -2.17 -0.92 -1.81 -2.33 -2.33 -1.71
## Num.Válido 6.00 12.00 9.00 3.00 3.00 6.00
## Pct.Válido 100.00 100.00 100.00 100.00 100.00 100.00
##
## Table: Table continues below
##
##
##
## Baguette9 Biointa1005 Biointa1006 Biointa1007 BuckPleno Cronox
## ------------------ ----------- ------------- ------------- ------------- ----------- ---------
## Media 4296.67 3994.25 4478.08 2510.83 3557.67 4379.67
## Dev.std. 453.25 1498.03 1221.10 517.60 314.85 1412.65
## Min 4030.00 2029.00 2831.00 1775.00 3321.00 2569.00
## Q1 4030.00 2846.50 3468.50 2029.00 3321.00 3790.00
## Mediana 4040.00 3764.00 4400.50 2666.00 3437.00 4110.00
## Q3 4820.00 5130.00 5245.00 2735.00 3915.00 5640.00
## Max 4820.00 6940.00 6710.00 3194.00 3915.00 6570.00
## DAP 14.83 1687.94 1381.78 442.56 171.98 2256.52
## RI 395.00 2216.75 1583.25 539.50 297.00 1850.00
## CV 0.11 0.38 0.27 0.21 0.09 0.32
## Asimetría 0.38 0.34 0.24 -0.21 0.33 0.17
## ES-Asimetría 1.22 0.64 0.64 0.85 1.22 0.72
## Curtosis -2.33 -1.11 -1.19 -1.68 -2.33 -1.53
## Num.Válido 3.00 12.00 12.00 6.00 3.00 9.00
## Pct.Válido 100.00 100.00 100.00 100.00 100.00 100.00
##
## Table: Table continues below
##
##
##
## Floripan100 KLEINCASTOR KLEINCHAJA KleinLeon KleinNutria KleinRayo
## ------------------ ------------- ------------- ------------ ----------- ------------- -----------
## Media 3443.00 4506.67 4780.00 4380.00 4386.83 4893.91
## Dev.std. 397.56 933.29 764.92 268.89 1067.88 1249.39
## Min 2944.00 3470.00 4070.00 4070.00 2766.00 3374.00
## Q1 3156.00 3470.00 4070.00 4070.00 3492.00 4044.00
## Mediana 3413.00 4770.00 4680.00 4520.00 4568.50 4429.00
## Q3 3739.00 5280.00 5590.00 4550.00 5185.00 6400.00
## Max 3993.00 5280.00 5590.00 4550.00 5950.00 6940.00
## DAP 432.18 756.13 904.39 44.48 1178.67 668.65
## RI 528.75 905.00 760.00 240.00 1406.50 1465.50
## CV 0.12 0.21 0.16 0.06 0.24 0.26
## Asimetría 0.10 -0.26 0.13 -0.38 -0.18 0.56
## ES-Asimetría 0.85 1.22 1.22 1.22 0.64 0.66
## Curtosis -1.86 -2.33 -2.33 -2.33 -1.46 -1.35
## Num.Válido 6.00 3.00 3.00 3.00 12.00 11.00
## Pct.Válido 100.00 100.00 100.00 100.00 100.00 100.00
##
## Table: Table continues below
##
##
##
## KleinTIGRE KleinTauro KleinZorro LE2331 LE2357 ONIX SY300
## ------------------ ------------ ------------ ------------ --------- --------- --------- ---------
## Media 5218.33 4622.67 4754.50 3491.67 4100.00 5023.33 5635.00
## Dev.std. 882.12 1268.00 1026.73 1176.50 295.47 697.16 527.82
## Min 4010.00 2616.00 3023.00 2164.00 3860.00 4360.00 5210.00
## Q1 4420.00 3596.50 3998.00 2413.00 3860.00 4360.00 5260.00
## Mediana 5415.00 4855.00 4555.00 3461.50 4010.00 4960.00 5370.00
## Q3 5570.00 5475.00 5825.00 4690.00 4430.00 5750.00 6150.00
## Max 6480.00 6510.00 6140.00 4760.00 4430.00 5750.00 6450.00
## DAP 852.50 985.93 1244.64 1687.94 222.39 889.56 200.15
## RI 870.00 1599.25 1708.50 2052.00 285.00 695.00 682.50
## CV 0.17 0.27 0.22 0.34 0.07 0.14 0.09
## Asimetría -0.05 -0.34 -0.03 0.01 0.28 0.09 0.58
## ES-Asimetría 0.85 0.64 0.64 0.85 1.22 1.22 0.85
## Curtosis -1.60 -1.30 -1.45 -2.17 -2.33 -2.33 -1.77
## Num.Válido 6.00 12.00 12.00 6.00 3.00 3.00 6.00
## Pct.Válido 100.00 100.00 100.00 100.00 100.00 100.00 100.00
ggplot (datos_filtrados ,aes(x=Tratamiento , Rendimiento, shape = Tratamiento))+
geom_boxplot()+labs(title = "Comparación de rendimientos de trigo entre tratamientos")
freq(TRIGO$Tratamiento, justify = "c", cumul = FALSE,report.nas = FALSE )
## Frecuencias
## TRIGO$Tratamiento
## Tipo: Alfahnumérico
##
## Frec. %
## ------------- ------- --------
## ConFung 1754 42.06
## SinFung 2416 57.94
## Total 4170 100.00
report.mas=FALSE
justity = "center"
Medidas_resumen <- datos_filtrados %>%
group_by(Genotipo) %>%
summarise(n = n(),
Media = mean(Rendimiento),
SD = sd(Rendimiento))
Medidas_resumen %>%
arrange(desc(Media))
## # A tibble: 33 × 4
## Genotipo n Media SD
## <chr> <int> <dbl> <dbl>
## 1 SY300 6 5635 528.
## 2 ACA905 3 5597. 962.
## 3 ATLAX 6 5367. 1117.
## 4 KleinTIGRE 6 5218. 882.
## 5 BIOINTA1002 3 5180 420
## 6 B75ANIVERSARIO 9 5102. 671.
## 7 BIOINTA1001 3 5037. 1068.
## 8 ONIX 3 5023. 697.
## 9 AGPFast 9 4973. 1402.
## 10 KleinRayo 11 4894. 1249.
## # ℹ 23 more rows
Con el uso de Rstudio como herramienta pudimos hacer un analisis descriptivo con la base datos proporcionada por la cátedra de biometria y estadistica que a su vez nos permitio promover un flujo de trabajo eficiente y facilitar la obtencion de resultados significados para una mejor toma de decisiones. En cuanto a lo Agronomico al observar un gran numeros de las distinta variedades , la que mejor recomdariamos es la SY300 por su notable rendimiento con respecto a las demas variedades.