powered by
data(milk)
cow
milk.amount
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