Re: [R] plot residuals per factor

2013-01-09 Thread arun
Hi, I forgot to mention: levels(dat1$d) #[1] "1" "2" "3" "4" "5" Suppose, if I use different levels library(car) dat1$d1<-recode(dat1$d,"1='A';2='B';3='C';4='D';5='E'")  levels(dat1$d1) # check the order of the levels #[1] "A" "B" "C" "D" "E" mypath<-file.path("/home/arun/Trial1",paste("catalin_",

Re: [R] plot residuals per factor

2013-01-08 Thread arun
HI, Not sure whether ggplot() works with lists. If you want to plot residuals.vs.fitted for multiple groups, this could help you.  Assuming that you want separate plots for each group: #You didn't provide any example. dat1<-read.csv("skin_color.csv",sep="\t") #You can replace this with your dat