Re: [R] using lapply and split to plot up subsets of a vector

2010-12-30 Thread karmakiller
Hi again, I have spent the last couple of days trying to build a function that will allow me to add to the multiple plots that I created with your advice. I have changed to plot(ln.o2con~lnbm,data=df) in my function and this works fine. On an individual plot I can fit quantile regressions

[R] using lapply and split to plot up subsets of a vector

2010-12-28 Thread karmakiller
Hi, I would like to be able to plot data from each of the sp.id on individual plots. At the moment I can plot all the data on one graph with the following commands but I cannot figure out how to get individual graph for each sp.id. i- function(df)plot(lnbm,ln.o2con,data=df) j-

Re: [R] using lapply and split to plot up subsets of a vector

2010-12-28 Thread Phil Spector
The data= argument to plot only makes sense if the first argument is a formula. So if you change the plot command in your function to plot(ln.o2con~lnbm,data=df) you might get what you want. But I would suggest you take a look at the plot produced by library(lattice)