Re: [R] Loading data to Trellis barchart plot.

2009-10-11 Thread Schalk Heunis
Hi I think the following will help: #Load some packages library(lattice) library(reshape) #Sample data dataset.frame <- data.frame(id=c("a","b","c","a","c","b","a"),colour=c("blue","green","red","red","red","green","green")) # calculate the counts dataset.table <- table(dataset.frame) #and res

Re: [R] Loading data to Trellis barchart plot.

2009-10-11 Thread kaixin maleA
Dear all, I have a question about loading the data to barchart plot. I know this could be a very easy question, but I just can not get my head around. What I need to do is to create a trellis plots barchart style (horizontal bar), with levels of one variable (ie. variable “colour” in my examp