Thierry: That's exactly what I wanted, Thanks > Dear Felipe, > > Is this what you want? > > library(ggplot2) > mydata <- data.frame(PondName = factor(LETTERS[1:5]), > avgWt = rnorm(5, > mean = 10, sd = 3)) > ggplot(mydata, aes(x = PondName, y = avgWt)) + geom_bar() > ggplot(mydata, aes(x = PondName, y = avgWt, fill = > PondName)) + > geom_bar() > > HTH, > > Thierry
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.