Learn R Programming

abd (version 0.2-8)

Cichlids: Cichlid Mating Preference

Description

Preference index in F1 and F2 crosses of two species of cichlids from Lake Victoria, Pundamilia pundamilia and P. nyererei.

Arguments

Format

A data frame with 53 observations on the following 2 variables.
genotype
a factor with levels F1 and F2
preference
a numeric vector

Source

Haeslery, M.P. and O. Seehausen. 2005. Inheritance of female mating preference in a sympatric sibling species pair of Lake Victoria cichlids: implications for speciation. Proceedings of the Royal Society of London, Series B, Biological Sciences 272: 237-245.

References

http://rspb.royalsocietypublishing.org/content/272/1560/237.full.pdf

Examples

Run this code
str(Cichlids)

summary(preference ~ genotype, Cichlids, fun = favstats)

if (require(plyr)) {
ddply(Cichlids, .(genotype),
  function(df)c(mean = mean(df$preference),
                standard.deviation = sd(df$preference),
                n = length(df$preference)))
}

Run the code above in your browser using DataLab