# \donttest{
# Load the dataset
data(Dsimulans_matechoice)
# Basic exploration
head(Dsimulans_matechoice)
summary(Dsimulans_matechoice)
# Examine mate copying rates by treatment
table(Dsimulans_matechoice$Treatment, Dsimulans_matechoice$MCS)
# Compare mate copying across different strains (using base R)
mosaicplot(table(Dsimulans_matechoice$Strain, Dsimulans_matechoice$MCS),
main = "Mate choice outcomes by strain",
color = c("lightblue", "salmon"))
# Analyze if environmental conditions affect mate copying
boxplot(Temp ~ MCS, data = Dsimulans_matechoice,
main = "Temperature effects on mate copying",
ylab = "Temperature (°C)")
# }
Run the code above in your browser using DataLab