Fore example my code is histogram(~data[,8]|data[,2], ylab = "Frequency", xlab = "Score", xlim = c(1,5), ylim = c(0,100),layout = c(3,1),col=data[,2] )
and i want the colour to be depended on the level of the factor in data[,2]. how do i do that ? ychu066 wrote: > > what is that ? > > > > Hrishi Mittal wrote: >> >> Add col=i in the histogram call. >> > > -- View this message in context: http://old.nabble.com/How-do-I-change-the-colour-and-format-for-the-trelli-plot---tp26418382p26421461.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.