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
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
2 matches
Mail list logo