Re: [R] barplot with more than 1 variable

2012-02-19 Thread Jim Lemon
On 02/19/2012 11:31 PM, Francesco Sarracino wrote: Dear R listers, I am trying to produce a simple (for a stata user) barplot with 4 countries on the x axis, each country observed in 2 subsequent years and 3 variables. Basically, I should have three bars for each year for each country. I am attac

Re: [R] barplot with more than 1 variable

2012-02-19 Thread ilai
You could have found the solution in http://had.co.nz/ggplot2/geom_bar.html yourself since all help pages for ggplot refer you to the web site. But to speed things up for you, try this for starters: TUSE2 <- data.frame(country = rep(c("United States","Italy","Germany","Netherlands"),each=2), year3