Re: [R] simple linear plots with a loop

2014-04-06 Thread Jim Lemon
On 04/07/2014 11:07 AM, Kristi Glover wrote: Hi R users, I was trying to plot with a fixed y with many independet variables. I tried this loop but it did not work. any suggestions? I wanted to make 9 plots. This is a just an example data. dat1<- as.data.frame(matrix(sample(1:20,100,replace=TR

Re: [R] simple linear plots with a loop

2014-04-06 Thread David Winsemius
On Apr 6, 2014, at 6:07 PM, Kristi Glover wrote: Hi R users, I was trying to plot with a fixed y with many independet variables. It looks like you are plotting with a fixed x. I tried this loop but it did not work. any suggestions? Yes. Explain what "did not work" means. Error? Then post

[R] simple linear plots with a loop

2014-04-06 Thread Kristi Glover
Hi R users, I was trying to plot with a fixed y with many independet variables. I tried this loop but it did not work. any suggestions? I wanted to make 9 plots. This is a just an example data. dat1<- as.data.frame(matrix(sample(1:20,100,replace=TRUE),ncol=10)) lapply(seq_len(ncol(dat1)),funct