Re: [R] ggplot2-barplot

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Mon, 23 Jun 2008 13:05:43 -0700 (PDT)


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_at_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. Received on Mon 23 Jun 2008 - 20:08:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 23 Jun 2008 - 20:32:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive