Skip to content
Prev 300533 / 398503 Next

Entering Data Files

You can do this using only xtabs. Using Rui's data.frame, d:

x <- xtabs(Count~Live+Age, d)

barplot(x, beside=T, legend.text=TRUE, args.legend=list(x="topleft"))

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352