Learn R Programming

PBImisc (version 1.0)

milk: Milk yield data

Description

Milk yield data for 10 unrelated cows

Usage

data(milk)

Arguments

Format

data.frame with 40 obs. and 2 variables
cow
cow id, a factor with 10 levels
milk.amount
milk amount in kgs per week

Details

Weekly milk yield amount for 10 cows. For every cow 5 measurements are taken.

Examples

Run this code
data(milk)
library(lattice)
# change the order of levels
milk$cow = reorder(milk$cow, milk$milk.amount, mean)
#plot it
dotplot(cow~milk.amount, data=milk)

Run the code above in your browser using DataLab