El tamaño de la muestra es de 24 Cangrejos, los cuales se sometieron al experimineto para evidenciar el efecto de dos variables (temperatura y sexo) sobre la tasa de consumo de oxigeno. Posteriormente se analiza la relacion entre el consumo de oxigeno en los cangrejos respecto a diferentes temperaturas.

require(ggplot2)
## Loading required package: ggplot2
require(agricolae)
## Loading required package: agricolae
## Warning: package 'agricolae' was built under R version 4.0.3
library(readxl)
## Warning: package 'readxl' was built under R version 4.0.3
Crustaceos <- read_excel("C:/Bioestadistica/Crustaceos.xlsx")
View(Crustaceos)
Crustaceos
## # A tibble: 24 x 3
##    Sexo   Temperatura   CO2
##    <chr>  <chr>       <dbl>
##  1 macho  Baja          1.9
##  2 macho  Baja          1.8
##  3 macho  Baja          1.6
##  4 macho  Baja          1.4
##  5 hembra Baja          1.8
##  6 hembra Baja          1.7
##  7 hembra Baja          1.4
##  8 hembra Baja          1.5
##  9 macho  Media         2.3
## 10 macho  Media         2.1
## # ... with 14 more rows

Segun la tabla para este experimento se evaluaron tres variables: temperatura (baja, media y alta), sexo (hembra y macho) y consumo de O2 en mg (Consumo de O2).

#Exploracion de datos.

ggplot(Crustaceos,aes(y=CO2, x=Temperatura, fill=Sexo))+ facet_grid(~Temperatura)+ geom_boxplot()+theme_bw()+ ylab("Consumo de O2 (mg)")+ggtitle("Diagrama de cajas")

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.