data(Eelgrass)
Eelgrass
# Convert treatment.genotypes to a factor
Eelgrass$genotypesF <-
factor(Eelgrass$genotypes)
str(Eelgrass)
xyplot(shoots ~ genotypes, Eelgrass)
xyplot(shoots ~ genotypesF, Eelgrass)
Run the code above in your browser using DataLab