Re: [R] help on bar chart

2010-07-07 Thread Greg Snow
boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of ppcrystal > Sent: Friday, July 02, 2010 11:47 PM > To: r-help@r-project.org > Subject: [R] help on bar chart > > > Hey guys, > > This is the bar chart that I am working on: > > library(latt

[R] help on bar chart

2010-07-03 Thread ppcrystal
Hey guys, This is the bar chart that I am working on: library(lattice); data <- data.frame( X1 = c(2300, 1300, 1300, 450), X2 = c(2110, 2220, 1100, 660), Y = factor(c("sample1", "sample2", "sample3", "sample4")) ); barchart( Y ~ X1 + X2, data,