Displaying 1 result from an estimated 1 matches for "examplelong".
2011 Mar 02
0
please help with interaction.plot
...e it does not fit. How can I change the location of the legend to be placed a little bit to the left?
example<-read.csv(file="example.csv")
example$date<-as.Date(example$Date,format="%d/%m/%Y",order="dmy")
head(example)
str(example)
names<-names(example)[2:5]
examplelong <- reshape(example, idvar = "id", varying = list(names), v.names="outcome",direction = "long")
examplelong$time2<-factor(examplelong$time,labels=rep(" ",4))
d3<-c((examplelong$date[1]),(examplelong$date[103]))
d4<-as.Date((d3[1])+150*(0:20))
int...